Commit 4bb360d
committed
RavenDB-26793 Fix bulk-insert time-series timestamps to treat naive datetimes as UTC
Utils.get_unix_time_in_ms used datetime.timestamp(), which interprets a naive
datetime in the machine's local timezone, so bulk-insert time-series timestamps
were shifted by the local UTC offset on non-UTC machines (e.g. 2h on CET). The
regular session path (Utils.datetime_to_string) treats naive datetimes as UTC;
do the same here so both paths agree and results are timezone-independent.1 parent 6514a75 commit 4bb360d
1 file changed
Lines changed: 5 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
| 18 | + | |
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| |||
958 | 958 | | |
959 | 959 | | |
960 | 960 | | |
| 961 | + | |
| 962 | + | |
| 963 | + | |
| 964 | + | |
961 | 965 | | |
0 commit comments