Adjust gti

This commit is contained in:
Dusty.P 2018-06-02 23:48:52 -08:00
parent ea177a3d71
commit e2252f7140

View File

@ -471,6 +471,10 @@ class Utils:
try:
orig_time = copy(time)
split_time = time.split()
try:
parsed_tz = pytz.timezone(split_time[-1])
time = utils.replace_text_ignorecase(time, old=split_time[-1], new='')
except pytz.exceptions.UnknownTimeZoneError:
for tz in pytz.all_timezones:
if split_time[-1].lower() in tz.lower():
time = utils.replace_text_ignorecase(time, old=split_time[-1], new='')