From 414acf2ae61669a8ba3f3b42265f4d3b1c3225fc Mon Sep 17 00:00:00 2001 From: Manuel Ebert Date: Wed, 16 Apr 2014 14:25:56 -0400 Subject: [PATCH] Assumes no DST in case of ambiguous dates Fixes #153 --- jrnl/Journal.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jrnl/Journal.py b/jrnl/Journal.py index 3a7f00f5..fffa8781 100644 --- a/jrnl/Journal.py +++ b/jrnl/Journal.py @@ -338,7 +338,7 @@ class DayOne(Journal): except (KeyError, pytz.exceptions.UnknownTimeZoneError): timezone = tzlocal.get_localzone() date = dict_entry['Creation Date'] - date = date + timezone.utcoffset(date) + date = date + timezone.utcoffset(date, is_dst=False) raw = dict_entry['Entry Text'] sep = re.search("[\n!?.]+", raw) title, body = (raw[:sep.end()], raw[sep.end():]) if sep else (raw, "")