1
0
mirror of https://github.com/pirate/ArchiveBox.git synced 2025-08-29 17:19:53 +02:00

Fix json export date parsing (#241)

Fix json export date parsing
This commit is contained in:
Nick Sweeting
2019-05-20 06:08:43 -04:00
committed by GitHub

View File

@@ -103,7 +103,7 @@ def parse_json_export(json_file):
json_file.seek(0)
links = json.load(json_file)
json_date = lambda s: datetime.strptime(s, '%Y-%m-%dT%H:%M:%S%z')
json_date = lambda s: datetime.strptime(s, '%Y-%m-%dT%H:%M:%SZ')
for link in links:
# example line