Skip to content
Snippets Groups Projects
Commit 428c1704 authored by David Douard's avatar David Douard
Browse files

Fix normalize_timestamp() for datetime < epoch with microsecond>0

the problem was for datetime<epoch, the timestamp is negative, but since
it's a float that includes the microseconds, if both are true (< epoch
and microsecond > 0), then the computed (int) timestamp was off by one.

Add dedicated tests for this.
parent ae50e43f
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment