-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
[TSVB] Handle ignore daylight time correctly and fix shift problem #123398
Conversation
Pinging @elastic/kibana-vis-editors @elastic/kibana-vis-editors-external (Team:VisEditors) |
@elasticmachine merge upstream |
@flash1293 I am trying to compare Lens with TSVB. The same chart on Lens gives me for the shifted day on the 27th 04:00 Update: This discrepancy happens only if I have selected the |
Interesting, it seems like the time zone is not propagated in the same way in both cases. Looking 👀 |
💚 Build Succeeded
Metrics [docs]Async chunks
History
To update your PR or re-run it, just comment with: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I tested it with daylight on and off. It works fine and I get the results I am expecting.
We found with @flash1293 a discrepancy between Lens and TSVB specifically when testing on Europe/Athens
timezone and setting the timezone to Browser
.
This is irrelevant with this PR, we will look into it separately.
Opened #123579 for the edge-casey follow-up |
Fixes #120449
This PR does two things:
How to test
Ingest this data (expand)
Europe/Berlin
)test_dst
indexIt looks like this:
You can see the first green data point is not overlaying the first red data point - this is because they are 24 hours apart (
2021-03-27T03:26:21.326Z
vs2021-03-28T03:26:21.326Z
), but that's not1d
because March 27 only has 23 hours.If you hover over the tooltip, you can see it got shifted by one day in this timezone - 4:00 stays 4:00, only the day changes:
If ignore daylight time is enabled, the DST switch doesn't happen, effectively the chart stays in winter time:
This means the shift of
1d
is now 24 hours in all cases.