diff options
| author | 2020-01-01 11:41:41 +0000 | |
|---|---|---|
| committer | 2020-01-01 11:41:41 +0000 | |
| commit | 8d5f0486e10849a346ce5c88b44273cca71bf60a (patch) | |
| tree | 1be9482f905e9219d66df738214b002293fbe456 /modules | |
| parent | if a timezone isn't found, prepend it with "Etc/" (for e.g. "Etc/GMT+1") (diff) | |
| signature | ||
Revert "if a timezone isn't found, prepend it with "Etc/" (for e.g. "Etc/GMT+1")"
This reverts commit fc0e6bdce050b323afe9c91ec2e3d58577321af4.
Diffstat (limited to 'modules')
| -rw-r--r-- | modules/user_time.py | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/modules/user_time.py b/modules/user_time.py index 11c46ff6..48077d81 100644 --- a/modules/user_time.py +++ b/modules/user_time.py @@ -45,8 +45,6 @@ class Module(ModuleManager.BaseModule): return LocationType.NAME, event["args"], None def _timezoned(self, dt, timezone): - if not timezone in pytz.all_timezones: - timezone = "Etc/%s" % timezone dt = dt.astimezone(pytz.timezone(timezone)) utc_offset = (dt.utcoffset().total_seconds()/60)/60 tz = "UTC" |
