Skip to content

Commit fd11960

Browse files
committed
fix: Workflow start time and time zone error (#4011)
1 parent 02529da commit fd11960

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/application/flow/step_node/start_node/impl/base_start_node.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ def get_global_variable(node):
3030
history_context = [{'question': chat_record.problem_text, 'answer': chat_record.answer_text} for chat_record in
3131
history_chat_record]
3232
chat_id = node.flow_params_serializer.data.get('chat_id')
33-
return {'time': timezone.now().strftime('%Y-%m-%d %H:%M:%S'), 'start_time': time.time(),
33+
return {'time': timezone.localtime(timezone.now()).strftime('%Y-%m-%d %H:%M:%S'), 'start_time': time.time(),
3434
'history_context': history_context, 'chat_id': str(chat_id), **node.workflow_manage.form_data,
3535
'chat_user_id': body.get('chat_user_id'),
3636
'chat_user_type': body.get('chat_user_type'),

0 commit comments

Comments
 (0)