diff --git a/apps/telegram-bot/commands.py b/apps/telegram-bot/commands.py index 7f09b42..e20fb75 100644 --- a/apps/telegram-bot/commands.py +++ b/apps/telegram-bot/commands.py @@ -418,6 +418,11 @@ async def cmd_update(update: Update, ctx: ContextTypes.DEFAULT_TYPE) -> None: room_id = get_room_id(update) timezone_str = BOUNTY_SERVICE.get_timezone(room_id) + try: + tz = ZoneInfo(timezone_str) + except (KeyError, ZoneInfoNotFoundError): + tz = ZoneInfo("UTC") + text, link, due_date_ts, clear_link, clear_date = parse_args(args[1:], timezone_str) if ( not text