1
0
mirror of https://github.com/bspeice/metrik synced 2024-12-25 23:18:15 -05:00

Try setting timezone in Travis

This commit is contained in:
Bradlee Speice 2016-08-13 10:14:44 -04:00
parent 136aa6775e
commit 58044a878d
3 changed files with 3 additions and 2 deletions

View File

@ -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

View File

@ -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

View File

@ -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