qa: use isoformat instead of strftime

This commit is contained in:
春河晴
2025-06-10 15:43:20 +09:00
parent 1534e99094
commit 440e8bf7f3

View File

@@ -1240,9 +1240,8 @@ class ParahippocampalGyrus:
logger.warning("无法从提供的消息生成可读文本,跳过记忆压缩。") logger.warning("无法从提供的消息生成可读文本,跳过记忆压缩。")
return set(), {} return set(), {}
current_YMD_time = datetime.datetime.now().strftime("%Y-%m-%d") current_date = f"当前日期: {datetime.datetime.now().isoformat()}"
current_YMD_time_str = f"当前日期: {current_YMD_time}" input_text = f"{current_date}\n{input_text}"
input_text = f"{current_YMD_time_str}\n{input_text}"
logger.debug(f"记忆来源:\n{input_text}") logger.debug(f"记忆来源:\n{input_text}")