mirror of
https://github.com/ArchiveBox/ArchiveBox
synced 2024-11-26 06:00:22 +00:00
whitespace
This commit is contained in:
parent
880b425df6
commit
ac9fed06fd
1 changed files with 1 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue