From 5f00973e400629bd68c0ab60ed9005410278f855 Mon Sep 17 00:00:00 2001 From: Kelly Brazil Date: Fri, 26 Mar 2021 15:38:57 -0700 Subject: [PATCH] remove parenthesis to normalize text for naive timezone detection --- jc/parsers/date.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jc/parsers/date.py b/jc/parsers/date.py index a1f7e7c5..bf2402de 100644 --- a/jc/parsers/date.py +++ b/jc/parsers/date.py @@ -147,7 +147,7 @@ def parse(data, raw=False, quiet=False): 'UTC+0600', 'UTC+0630', 'UTC+0700', 'UTC+0800', 'UTC+0845', 'UTC+0900', 'UTC+1000', 'UTC+1030', 'UTC+1100', 'UTC+1200', 'UTC+1300', 'UTC+1345', 'UTC+1400'] tz = None - for term in data.split(): + for term in data.replace('(', '').replace(')', '').split(): if term in tz_abbr: tz = term