From ec31d4f5f81600ec1402f45c0b1afca48806ea9b Mon Sep 17 00:00:00 2001 From: shum Date: Fri, 29 Aug 2025 14:20:14 +0000 Subject: [PATCH] apps/simplex-llm-bot: switch to modern timestamp functions --- apps/simplex-llm-bot/bot.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/simplex-llm-bot/bot.py b/apps/simplex-llm-bot/bot.py index 2e1b735238..2d5bb4b576 100644 --- a/apps/simplex-llm-bot/bot.py +++ b/apps/simplex-llm-bot/bot.py @@ -2,7 +2,7 @@ import asyncio from simpx import BotProfile, SimpleXBot from simpx.download import SimpleXDaemon from simpx.extension import ChatWrapper -from datetime import datetime, timedelta +from datetime import datetime, timedelta, UTC import traceback import os import time @@ -88,7 +88,7 @@ if __name__ == "__main__": else: return - now = datetime.utcnow() + now = datetime.now(UTC) # Initialize history entry if it doesn't exist if chat_id not in chat_histories: