Skip to content

Commit b74b0d2

Browse files
authored
Fix typo in timestamp scale factor (ArchiveBox#1627)
2 parents 1fb5ecf + 3312a34 commit b74b0d2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

archivebox/parsers/generic_json.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ def jsonObjectToLink(link: str, source: str):
2626
ts_str = str(datetime.now(timezone.utc).timestamp())
2727
if link.get('timestamp'):
2828
# chrome/ff histories use a very precise timestamp
29-
ts_str = str(link['timestamp'] / 10000000)
29+
ts_str = str(link['timestamp'] / 1000000)
3030
elif link.get('time'):
3131
ts_str = str(json_date(link['time'].split(',', 1)[0]).timestamp())
3232
elif link.get('created_at'):

0 commit comments

Comments
 (0)