You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We recently hit a bug in update/sync where the code was failing to run due to an ambiguous datetime. This happened because a) the server clock switched away from DST, and b) pytz is now available.
What this outlined is that for unknown reasons update/sync is converting timestamps into timezone-aware datetime objects. Since unix timestamps work perfectly fine in this scenario, so the conversion is unnecessary.
The text was updated successfully, but these errors were encountered:
Apart from not being necessary or efficient, using local time for this
purpose is buggy when there are files on disk that changed during DST
adjustment periods.
Therefore from now on `Store`'s `file_mtime` field will be an integer
holding the unix timestamp value.
Fixesserge-community#77.
Apart from not being necessary or efficient, using local time for this
purpose is buggy when there are files on disk that changed during DST
adjustment periods.
Therefore from now on `Store`'s `file_mtime` field will be an integer
holding the unix timestamp value.
Fixesserge-community#77.
julen
added a commit
to julen/zing
that referenced
this issue
Nov 5, 2018
Apart from not being necessary or efficient, using local time for this
purpose is buggy when there are files on disk that changed during DST
adjustment periods.
Therefore from now on `Store`'s `file_mtime` field will be an integer
holding the unix timestamp value.
Fixesserge-community#77.
We recently hit a bug in update/sync where the code was failing to run due to an ambiguous datetime. This happened because a) the server clock switched away from DST, and b) pytz is now available.
What this outlined is that for unknown reasons update/sync is converting timestamps into timezone-aware datetime objects. Since unix timestamps work perfectly fine in this scenario, so the conversion is unnecessary.
The text was updated successfully, but these errors were encountered: