From 164dbb72a85623850f15579d25e1ac712346812b Mon Sep 17 00:00:00 2001 From: Cursor Agent Date: Tue, 26 May 2026 04:01:04 +0000 Subject: [PATCH] fix(triage_rollout_enact): require tz on --simulate-now to avoid TypeError Co-authored-by: Yassin Kortam --- .github/scripts/triage_rollout_enact.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/scripts/triage_rollout_enact.py b/.github/scripts/triage_rollout_enact.py index 124943bc504..89aa7a249e6 100644 --- a/.github/scripts/triage_rollout_enact.py +++ b/.github/scripts/triage_rollout_enact.py @@ -466,6 +466,11 @@ def main() -> int: current_time = dt.datetime.fromisoformat( args.simulate_now.replace("Z", "+00:00") ) + if current_time.tzinfo is None: + parser.error( + "--simulate-now must include a timezone offset " + "(e.g. '2026-06-02T09:00:00Z' or '2026-06-02T09:00:00+00:00')." + ) else: offset = ( args.simulate_future_hours