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

Fix date_histogram issues during a timezone DST switch #8655

Closed
wants to merge 1 commit into from

Conversation

thanodnl
Copy link
Contributor

The problem was in the difference between the two responses of the preTz.getOffset call. To solve this I only call it once.

The behaviour of roundKey changed that it is now returning the actual rounded timestamp rounded timestamp offsetted to UTC. The exact opposite is true for valueForKey which used to accept the UTC offsetted timestamp but now needs to work on the normal timestamp.

The tests for rounding are all passing, including the tests I added where the issue was shown.

Closes #8339

/cc @jpountz

@jpountz
Copy link
Contributor

jpountz commented Nov 25, 2014

Merged, thanks!

@jpountz jpountz closed this Nov 25, 2014
@clintongormley clintongormley changed the title Solution for date_histogram issues in a timezone on DST switch Aggregations: Fix date_histogram issues during a timezone DST switch Nov 25, 2014
@clintongormley clintongormley changed the title Aggregations: Fix date_histogram issues during a timezone DST switch Fix date_histogram issues during a timezone DST switch Jun 7, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Aggregations: date_histogram aggregation DST bug
3 participants