mirror of
https://github.com/jrnl-org/jrnl.git
synced 2025-05-20 04:58:32 +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()
|
timezone = tzlocal.get_localzone()
|
||||||
date = dict_entry['Creation Date']
|
date = dict_entry['Creation Date']
|
||||||
if timezone != pytz.timezone('UTC'):
|
if timezone != pytz.timezone('UTC'):
|
||||||
time_offset = timezone.utcoffset(date)
|
time_offset = timezone.utcoffset(date, is_dst=False)
|
||||||
else:
|
else:
|
||||||
time_offset = timedelta(0)
|
time_offset = timedelta(0)
|
||||||
date = date + time_offset
|
date = date + time_offset
|
||||||
|
|
Loading…
Add table
Reference in a new issue