1
0
mirror of https://github.com/kellyjonbrazil/jc.git synced 2025-07-15 01:24:29 +02:00

remove parenthesis to normalize text for naive timezone detection

This commit is contained in:
Kelly Brazil
2021-03-26 15:38:57 -07:00
parent 0f6e2c14fc
commit 5f00973e40

View File

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