diff --git a/src/tww/tokenizer.py b/src/tww/tokenizer.py index 84c6e7a..7435d4f 100644 --- a/src/tww/tokenizer.py +++ b/src/tww/tokenizer.py @@ -130,7 +130,7 @@ h_tz_offset = 'tz->tz_offset' h_time_in = 'dt->hh:mm' h_translation = 'dst_dt->iso8601_full' h_default_dt = 'dt->iso8601_full' -h_default_td = 'diff->duration_iso8601' +h_default_td = 'timedelta->diff->duration_iso8601' regex_handlers = [ (r_time_in_epoch_s_now, handler_time_now_local, QUERY_TYPE_DT, h_unix_s), @@ -316,7 +316,7 @@ def main(args): global custom_locale custom_locale = resolve_locale(args.locale) query = ' '.join(args.query) - query = "time in sofia" + # query = "tz in sofia" result = resolve_query(query) if args.full: pretty_print_dict(result)