From fd119604d15bef74a0c607c2e3ad6c0853b74b42 Mon Sep 17 00:00:00 2001 From: shaohuzhang1 <80892890+shaohuzhang1@users.noreply.github.com> Date: Tue, 9 Sep 2025 13:52:13 +0800 Subject: [PATCH] fix: Workflow start time and time zone error (#4011) --- .../flow/step_node/start_node/impl/base_start_node.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/application/flow/step_node/start_node/impl/base_start_node.py b/apps/application/flow/step_node/start_node/impl/base_start_node.py index 9fd1e5c23..29a64591d 100644 --- a/apps/application/flow/step_node/start_node/impl/base_start_node.py +++ b/apps/application/flow/step_node/start_node/impl/base_start_node.py @@ -30,7 +30,7 @@ def get_global_variable(node): history_context = [{'question': chat_record.problem_text, 'answer': chat_record.answer_text} for chat_record in history_chat_record] chat_id = node.flow_params_serializer.data.get('chat_id') - return {'time': timezone.now().strftime('%Y-%m-%d %H:%M:%S'), 'start_time': time.time(), + return {'time': timezone.localtime(timezone.now()).strftime('%Y-%m-%d %H:%M:%S'), 'start_time': time.time(), 'history_context': history_context, 'chat_id': str(chat_id), **node.workflow_manage.form_data, 'chat_user_id': body.get('chat_user_id'), 'chat_user_type': body.get('chat_user_type'),