frontend timezone follow db
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user