修复货币数字错误和没有货币种类问题,修复UTC和本地时间混用,改用UTC

This commit is contained in:
BoliviaYu
2026-03-07 15:02:11 +08:00
parent 0323a1d940
commit 4f03824299
5 changed files with 92 additions and 19 deletions

View File

@@ -194,6 +194,9 @@ class MySQLStore:
charset=self.cfg["charset"],
autocommit=True,
)
# Force session timestamps to UTC for NOW()/CURRENT_TIMESTAMP consistency.
with self.conn.cursor() as cursor:
cursor.execute("SET time_zone = '+00:00'")
def close(self):
if self.conn: