Adjust gti
This commit is contained in:
parent
ea177a3d71
commit
e2252f7140
@ -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='')
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user