fix: explicit local timezone for today check
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user