From 58044a878dc06c423ea56aaca1470ddc94e660da Mon Sep 17 00:00:00 2001 From: Bradlee Speice Date: Sat, 13 Aug 2016 10:14:44 -0400 Subject: [PATCH] Try setting timezone in Travis --- .travis.yml | 2 ++ metrik/tasks/ice.py | 2 +- requirements.txt | 1 - 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 695289a..79e5406 100644 --- a/.travis.yml +++ b/.travis.yml @@ -5,5 +5,7 @@ python: - "3.4" - "3.5" +before_install: + - export TZ=Australia/Canberra install: pip install -r requirements.txt script: python setup.py test \ No newline at end of file diff --git a/metrik/tasks/ice.py b/metrik/tasks/ice.py index e848147..7d25d2c 100644 --- a/metrik/tasks/ice.py +++ b/metrik/tasks/ice.py @@ -61,7 +61,7 @@ class LiborRateTask(MongoCreateTask): # the *time* is correct, but very often the date gets screwed up. # When I download the CSV with Firefox I only see the times - when I # download with `requests`, I see both date (often incorrect) and time. - logging.info('Received string for publication time: {}'.format(row['publication'])) + dt = parse(row['publication']) if dt.tzinfo is None: # Seems like the messed up timezone is always America/New_York diff --git a/requirements.txt b/requirements.txt index f9e60a1..c9fff9d 100644 --- a/requirements.txt +++ b/requirements.txt @@ -2,5 +2,4 @@ pytz>=2016.6.1 luigi>=2.2.0 pyquery>=1.2.9 requests>=2.9.1 -pandas>=0.17.1 pymongo>=3.2 \ No newline at end of file