fix:time display

This commit is contained in:
2025-11-03 17:34:03 +08:00
parent 6d31e4db09
commit 9b1eb38dd9
2 changed files with 2 additions and 3 deletions
+2 -1
View File
@@ -10,6 +10,7 @@ import dotenv from 'dotenv';
import mysql from 'mysql2/promise';
import managerRoutes from './managerRoutes.js';
import workerRoutes from './workerRoutes.js';
import { APP_TIMEZONE } from './config/db.js'
async function startServer() {
dotenv.config({ path: path.join(path.dirname(fileURLToPath(import.meta.url)), '.env') });
@@ -25,7 +26,7 @@ async function startServer() {
waitForConnections: true,
connectionLimit: 10,
queueLimit: 0,
timezone: 'Z',
timezone: APP_TIMEZONE,
dateStrings: true
});