forked from influxdata/influxdb
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix time zone shifts when the shift happens on a time zone boundary
When a time zone shift happened at the edge of a time bucket, the logic was incorrect. When we added an hour to the day with a time grouping of 2 hours, we took the hour away from the previous bucket instead of the next bucket so the first bucket of the day would be from midnight to 1 AM and the second bucket would include 1 AM to 4 AM (2 AM to 3 AM does not exist when shifting forwards). The correct buckets should have been 12 AM to 2 AM for the first bucket of the day and 3 AM to 4 AM for the second (since 2 AM to 3 AM does not exist). This also modifies the tests to use table tests and sub tests.
- Loading branch information
1 parent
fe1167c
commit 343cd2e
Showing
5 changed files
with
327 additions
and
252 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.