mirror of
https://github.com/ArchiveBox/ArchiveBox.git
synced 2025-05-14 07:04:27 -04:00
Fix typo in timestamp scale factor
This commit is contained in:
parent
1fb5ecf13d
commit
3312a34b39
1 changed files with 1 additions and 1 deletions
|
@ -26,7 +26,7 @@ def jsonObjectToLink(link: str, source: str):
|
||||||
ts_str = str(datetime.now(timezone.utc).timestamp())
|
ts_str = str(datetime.now(timezone.utc).timestamp())
|
||||||
if link.get('timestamp'):
|
if link.get('timestamp'):
|
||||||
# chrome/ff histories use a very precise timestamp
|
# chrome/ff histories use a very precise timestamp
|
||||||
ts_str = str(link['timestamp'] / 10000000)
|
ts_str = str(link['timestamp'] / 1000000)
|
||||||
elif link.get('time'):
|
elif link.get('time'):
|
||||||
ts_str = str(json_date(link['time'].split(',', 1)[0]).timestamp())
|
ts_str = str(json_date(link['time'].split(',', 1)[0]).timestamp())
|
||||||
elif link.get('created_at'):
|
elif link.get('created_at'):
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue