Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Axis] The new time axis displays wrong text for the dates with 1s #1633

Closed
3 tasks done
stratoula opened this issue Mar 28, 2022 · 1 comment · Fixed by #1634
Closed
3 tasks done

[Axis] The new time axis displays wrong text for the dates with 1s #1633

stratoula opened this issue Mar 28, 2022 · 1 comment · Fixed by #1634
Labels
:axis Axis related issue bug Something isn't working kibana cross issue Has a Kibana issue counterpart :xy Bar/Line/Area chart related

Comments

@stratoula
Copy link

stratoula commented Mar 28, 2022

Describe the issue
On the new time axis there are cases that the dates with 1s are displayed wrongly. For example 1th of March instead of 1st of March.

To Reproduce
Steps to reproduce the behavior:

  1. Initialize kibana locally
  2. Click on Lens
  3. Create a bar chart with the flights dataset
  4. Use a 30 days timespan
  5. Check the x axis

image

you can see the 21th here

If you change the timespan to 7 days you can see that is displayed correctly
image

Expected behaviour
It should be 1st in all cases

Kibana Cross Issues
elastic/kibana#128504

Checklist

  • The proper chart type label has been added (e.g. :xy, :partition)
  • The proper feature labels have been added (e.g. :interactions, :axis)
  • Every related Kibana issue is listed under Kibana Cross Issues list and the kibana cross issue tag is applied
@stratoula stratoula added bug Something isn't working kibana cross issue Has a Kibana issue counterpart :axis Axis related issue :xy Bar/Line/Area chart related labels Mar 28, 2022
@nickofthyme
Copy link
Collaborator

Created codesandbox repro here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
:axis Axis related issue bug Something isn't working kibana cross issue Has a Kibana issue counterpart :xy Bar/Line/Area chart related
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants