mirror of
https://github.com/jrnl-org/jrnl.git
synced 2025-05-19 20:48:31 +02:00
deal with DST (re-fix bug)
This commit is contained in:
parent
1bfa1b3db3
commit
4cfd071547
1 changed files with 1 additions and 1 deletions
|
@ -50,7 +50,7 @@ class DayOne(Journal.Journal):
|
|||
timezone = tzlocal.get_localzone()
|
||||
date = dict_entry['Creation Date']
|
||||
if timezone != pytz.timezone('UTC'):
|
||||
time_offset = timezone.utcoffset(date)
|
||||
time_offset = timezone.utcoffset(date, is_dst=False)
|
||||
else:
|
||||
time_offset = timedelta(0)
|
||||
date = date + time_offset
|
||||
|
|
Loading…
Add table
Reference in a new issue