From 60aedd43e63ee6d7e754e180887b5ef063964ac2 Mon Sep 17 00:00:00 2001 From: liuwei Date: Tue, 10 Jun 2025 16:44:20 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8A=A0=E5=85=A5=E5=91=A8=E6=9C=9F=E4=BB=BB?= =?UTF-8?q?=E5=8A=A1=E9=87=8C=E9=9D=A2=E7=9A=84=E6=AF=8F=E4=B8=AA=E5=91=A8?= =?UTF-8?q?=E6=9C=9F=E7=9A=84=E5=85=B7=E4=BD=93=E6=97=B6=E9=97=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- admin/dashboard/blueprints/message_push.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/admin/dashboard/blueprints/message_push.py b/admin/dashboard/blueprints/message_push.py index 3673c19..21e861e 100644 --- a/admin/dashboard/blueprints/message_push.py +++ b/admin/dashboard/blueprints/message_push.py @@ -101,7 +101,10 @@ def api_tasks_list(): # 处理recurring_time序列化问题 for task in tasks: if hasattr(task, 'recurring_time') and task.recurring_time: - task.recurring_time = task.recurring_time.isoformat() + # 将timedelta转换为HH:mm格式的字符串 + hours = task.recurring_time.seconds // 3600 + minutes = (task.recurring_time.seconds % 3600) // 60 + task.recurring_time = f"{hours:02d}:{minutes:02d}" return jsonify({ "success": True,