From eb490c9ede894e58a9cc38e278863ea797110925 Mon Sep 17 00:00:00 2001 From: jnozsc Date: Sat, 16 Sep 2017 13:27:41 -0700 Subject: [PATCH] strange issue --- .travis.yml | 1 - jrnl/DayOneJournal.py | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 0d4ae30a..22b8c7f1 100644 --- a/.travis.yml +++ b/.travis.yml @@ -12,7 +12,6 @@ install: - "pip install -e ." - "pip install pycryptodome>=3.4.5" - "pip install -q behave" - - "pip install pytz" # command to run tests script: - python --version diff --git a/jrnl/DayOneJournal.py b/jrnl/DayOneJournal.py index cf246a90..4abf3bde 100644 --- a/jrnl/DayOneJournal.py +++ b/jrnl/DayOneJournal.py @@ -43,7 +43,7 @@ class DayOne(Journal.Journal): except (KeyError, pytz.exceptions.UnknownTimeZoneError): timezone = tzlocal.get_localzone() date = dict_entry['Creation Date'] - date = date + timezone.utcoffset(date, is_dst=False) + date = date + timezone.utcoffset(date) raw = dict_entry['Entry Text'] sep = re.search("\n|[\?!.]+ +\n?", raw) title, body = (raw[:sep.end()], raw[sep.end():]) if sep else (raw, "")