From 2c12a1ab745512b111720e13b74e70528bd769f8 Mon Sep 17 00:00:00 2001 From: Daniel Tsvetkov Date: Mon, 6 Jan 2020 10:32:44 +0100 Subject: [PATCH] utc default --- src/tww/tww.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tww/tww.py b/src/tww/tww.py index 9b89383..a7481d3 100644 --- a/src/tww/tww.py +++ b/src/tww/tww.py @@ -439,7 +439,7 @@ def query_to_dt(query): def tzinfo_from_offset(offset: str) -> pytz.timezone: if ':' in offset: offset = ''.join(offset.split(':')) - tznames = TZ_OFFSETS.get(offset, []) + tznames = TZ_OFFSETS.get(offset, ["utc"]) for tzname in tznames: if tzname.startswith('Etc/GMT'): return pytz.timezone(tzname)