frontend timezone follow db

This commit is contained in:
Edison
2025-11-03 16:48:13 +08:00
parent b6352dcddc
commit 05d58b0012
9 changed files with 796 additions and 289 deletions
+1 -4
View File
@@ -101,10 +101,7 @@ export default function(db) {
router.use(authenticateJWT);
// Definitive version with distance calculation and specific error messages
import { db } from './server.js'; // ensure this exists up top
router.post('/clock', async (req, res) => {
router.post('/clock', async (req, res) => {
// NEW: borrow a connection so we can set session time_zone
const conn = await db.getConnection();
try {