mirror of
https://github.com/bspeice/metrik
synced 2024-11-04 22:48:11 -05:00
Try setting timezone in Travis
This commit is contained in:
parent
136aa6775e
commit
58044a878d
@ -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
|
@ -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
|
||||
|
@ -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
|
Loading…
Reference in New Issue
Block a user