fix: explicit local timezone for today check

This commit is contained in:
2026-06-11 11:39:03 +01:00
parent ec56e5802a
commit c596f7a005

View File

@@ -66,7 +66,10 @@ export default function Booking() {
.filter(Boolean);
const today = new Date();
const todayStr = today.toISOString().split('T')[0];
const year = today.getFullYear();
const month = String(today.getMonth() + 1).padStart(2, '0');
const day = String(today.getDate()).padStart(2, '0');
const todayStr = `${year}-${month}-${day}`;
const isToday = date === todayStr;
const currentHour = today.getHours();
const currentMinute = today.getMinutes();