fix the UTF8 time display errer

This commit is contained in:
2026-03-06 23:57:59 +08:00
parent 6a0e24bedf
commit c04314a7b0
+2 -1
View File
@@ -12,7 +12,8 @@ const pool = mysql.createPool({
queueLimit: 0,
multipleStatements: true,
charset: 'utf8mb4', // 確保這一行存在
timezone: '+08:00' // 強制時區一致
timezone: '+08:00', // 強制時區一致
dateStrings: true // 強制將日期作為字串回傳,避免 Node.js 進行二次時區轉換
});
// 啟動測試