From c469dc164bbc79c4cdade3ee45069ecc078ae014 Mon Sep 17 00:00:00 2001 From: yezi Date: Fri, 1 Mar 2024 06:34:36 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E8=BF=90=E8=A1=8C?= =?UTF-8?q?=E5=A4=B1=E8=B4=A5=E6=B6=88=E6=81=AF=E6=8E=A8=E9=80=81=E6=9C=AA?= =?UTF-8?q?=E6=AD=A3=E7=A1=AE=E5=A4=84=E7=90=86=E6=97=B6=E5=8C=BA=E7=9A=84?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- utils/event_handlers.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/utils/event_handlers.py b/utils/event_handlers.py index bbc9776..26a9bac 100644 --- a/utils/event_handlers.py +++ b/utils/event_handlers.py @@ -27,7 +27,9 @@ async def on_failure_or_crashed( "flow_name": flow.name, "run_name": flow_run.name, "parameters": str(flow_run.parameters), - "start_time": flow_run.start_time.strftime(r"%Y-%m-%d %H:%M:%S") + "start_time": flow_run.start_time.in_timezone( + "Asia/Shanghai" + ).strftime(r"%Y-%m-%d %H:%M:%S") if flow_run.start_time else "[未知]", "retries": flow_run.empirical_policy.retries,