-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[WIP] Use UTC Hour, Day, Month, Year for comparison
The time.Hour() function, for example, returns the value of hour stored, without accounting for timezone information. E.g. for timestamp, 2019-05-28T14:41:57+30:00, the Hour value would be 14 whereas when we use this value for comparison, that would not correctly compare two timestamps. Now, we use UTC value of hour for creating index and for comparison to ensure that we correctly compare all timestamps having timezone information.
- Loading branch information
1 parent
a614ee3
commit 25ecece
Showing
3 changed files
with
288 additions
and
36 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