Switch default timezone when dateutil can't parse

master
Bradlee Speice 2016-08-16 17:39:13 -04:00
parent a049c7da62
commit 3753670a56
1 changed files with 1 additions and 1 deletions

View File

@ -63,7 +63,7 @@ class LiborRateTask(MongoCreateTask):
dt = parse(row['publication'])
dt = dt.replace(year=date.year, month=date.month, day=date.day)
if dt.tzinfo is None:
dt = timezone('Europe/London').localize(dt)
dt = timezone('America/New_York').localize(dt)
globals()['publication'] = dt
# Because of the shenanigans I did earlier with globals(), ignore