Skip to content

Commit

Permalink
fix: 修复运行失败消息推送未正确处理时区的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
FHU-yezi committed Feb 29, 2024
1 parent cc4cf6c commit c469dc1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion utils/event_handlers.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit c469dc1

Please sign in to comment.