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
});
-2
View File
@@ -2,8 +2,6 @@ import express from 'express';
import { point, polygon, booleanPointInPolygon, pointToLineDistance } from '@turf/turf';
import bcrypt from 'bcrypt';
import jwt from 'jsonwebtoken';
import { db } from './server.js';
import { withTzSession } from './middleware/withTzSession.js';
// Map IANA (no DST for KL/Jakarta)