Revert "if a timezone isn't found, prepend it with "Etc/" (for e.g. "Etc/GMT+1")"

This reverts commit fc0e6bdce0.
This commit is contained in:
jesopo 2020-01-01 11:41:41 +00:00
parent fc0e6bdce0
commit 8d5f0486e1

View file

@ -45,8 +45,6 @@ class Module(ModuleManager.BaseModule):
return LocationType.NAME, event["args"], None return LocationType.NAME, event["args"], None
def _timezoned(self, dt, timezone): def _timezoned(self, dt, timezone):
if not timezone in pytz.all_timezones:
timezone = "Etc/%s" % timezone
dt = dt.astimezone(pytz.timezone(timezone)) dt = dt.astimezone(pytz.timezone(timezone))
utc_offset = (dt.utcoffset().total_seconds()/60)/60 utc_offset = (dt.utcoffset().total_seconds()/60)/60
tz = "UTC" tz = "UTC"