Adjust gti
This commit is contained in:
parent
02f189781f
commit
73503c9199
@ -470,9 +470,10 @@ class Utils:
|
|||||||
else:
|
else:
|
||||||
try:
|
try:
|
||||||
orig_time = copy(time)
|
orig_time = copy(time)
|
||||||
|
split_time = time.split()
|
||||||
for tz in pytz.all_timezones:
|
for tz in pytz.all_timezones:
|
||||||
if time.lower().split()[-1] in tz.lower():
|
if split_time[-1].lower() in tz.lower():
|
||||||
time = utils.replace_text_ignorecase(time, old=tz, new='')
|
time = utils.replace_text_ignorecase(time, old=split_time[-1], new='')
|
||||||
if tz in replace_tzs:
|
if tz in replace_tzs:
|
||||||
tz = replace_tzs['tz']
|
tz = replace_tzs['tz']
|
||||||
parsed_tz = pytz.timezone(tz)
|
parsed_tz = pytz.timezone(tz)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user