-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Round times to the nearest second and chop nanos
Clockwork changed to defaulting to the current time rather than a fixed time. This means that the nanoseconds field is now set which isn't the case in the MySQL timestamp. The value returned from MySQL is always going to be limited to the nearest second but the value in Go that is expected will have nanosecond precision. We need to chop it off.
- Loading branch information
Showing
2 changed files
with
4 additions
and
3 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