mirror of
https://github.com/jrnl-org/jrnl.git
synced 2025-05-10 08:38:32 +02:00
Fixes #87
This commit is contained in:
parent
75e4e72c4a
commit
1a31c10ca7
1 changed files with 1 additions and 1 deletions
|
@ -315,7 +315,7 @@ class DayOne(Journal):
|
|||
dict_entry = plistlib.readPlist(plist_entry)
|
||||
try:
|
||||
timezone = pytz.timezone(dict_entry['Time Zone'])
|
||||
except pytz.exceptions.UnknownTimeZoneError:
|
||||
except (KeyError, pytz.exceptions.UnknownTimeZoneError):
|
||||
timezone = pytz.timezone(util.get_local_timezone())
|
||||
date = dict_entry['Creation Date']
|
||||
date = date + timezone.utcoffset(date)
|
||||
|
|
Loading…
Add table
Reference in a new issue