Fix typo in timestamp scale factor

This commit is contained in:
1over137 2024-12-25 11:50:40 +00:00 committed by GitHub
parent 1fb5ecf13d
commit 3312a34b39
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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