1
0
mirror of https://github.com/pirate/ArchiveBox.git synced 2025-08-07 15:16:28 +02:00

Fix typo in timestamp scale factor (#1627)

This commit is contained in:
Nick Sweeting
2024-12-26 01:57:08 -05:00
committed by GitHub

View File

@@ -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'):