1
0
mirror of https://github.com/pirate/ArchiveBox.git synced 2025-08-26 15:54:36 +02:00

whitespace

This commit is contained in:
Nick Sweeting
2019-03-30 17:59:56 -04:00
parent 880b425df6
commit ac9fed06fd

View File

@@ -386,6 +386,7 @@ def parse_date(date: Any) -> Optional[datetime]:
if EARLIEST_POSSIBLE < timestamp < LATEST_POSSIBLE:
# number is seconds
return datetime.fromtimestamp(timestamp)
elif EARLIEST_POSSIBLE * 1000 < timestamp < LATEST_POSSIBLE * 1000:
# number is milliseconds
return datetime.fromtimestamp(timestamp / 1000)