From 73503c9199ab17ce64371d21c8623f6e9492aee9 Mon Sep 17 00:00:00 2001 From: "Dusty.P" Date: Sat, 2 Jun 2018 23:39:43 -0800 Subject: [PATCH] Adjust gti --- exts/utils.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/exts/utils.py b/exts/utils.py index e825bbe..407d23a 100644 --- a/exts/utils.py +++ b/exts/utils.py @@ -470,9 +470,10 @@ class Utils: else: try: orig_time = copy(time) + split_time = time.split() for tz in pytz.all_timezones: - if time.lower().split()[-1] in tz.lower(): - time = utils.replace_text_ignorecase(time, old=tz, new='') + if split_time[-1].lower() in tz.lower(): + time = utils.replace_text_ignorecase(time, old=split_time[-1], new='') if tz in replace_tzs: tz = replace_tzs['tz'] parsed_tz = pytz.timezone(tz)