From 25e5e26a7ba02a40dc2e884af2587d4cc2bfe21c Mon Sep 17 00:00:00 2001 From: liuwei Date: Thu, 6 Feb 2025 11:53:36 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8A=A0=E5=85=A5=E8=81=8A=E5=A4=A9=E8=AE=B0?= =?UTF-8?q?=E5=BD=95=E5=85=A5=E5=BA=93=E5=8A=A8=E4=BD=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- robot.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/robot.py b/robot.py index 4a28bd1..11c50c0 100644 --- a/robot.py +++ b/robot.py @@ -162,7 +162,8 @@ class Robot(Job): # 聊天记录入库动作: try: - archive_message(datetime.now(),msg.sender,msg.content,msg.type,msg.extra) + now_time = str(datetime.now().strftime("%Y-%m-%d %H:%M:%S")) + archive_message(now_time,msg.sender,msg.content,msg.type,msg.extra) except Exception as e: self.LOG.error(f"archive_message error: {e}")