From 3753670a569fc50ed767af7195e4286deebea217 Mon Sep 17 00:00:00 2001 From: Bradlee Speice Date: Tue, 16 Aug 2016 17:39:13 -0400 Subject: [PATCH] Switch default timezone when dateutil can't parse --- metrik/tasks/ice.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/metrik/tasks/ice.py b/metrik/tasks/ice.py index 3856ccf..7294d75 100644 --- a/metrik/tasks/ice.py +++ b/metrik/tasks/ice.py @@ -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