PRO GAMBLEE

Updated isPastEvent function to add 1 day to the event date comparison.
This commit is contained in:
Gommo203
2025-11-19 01:27:39 -05:00
committed by GitHub
parent 7efe188a4f
commit bf2ca9e26a

View File

@@ -55,10 +55,10 @@
const isPastEvent = (dateString: string): boolean => { const isPastEvent = (dateString: string): boolean => {
const eventDate = parseEventDate(dateString); const eventDate = parseEventDate(dateString);
// Add 1 day to the event date // Add 1 day to the event date
const now = new Date();
const eventDatePlusOneDay = new Date(eventDate.getTime() + 24 * 60 * 60 * 1000); const eventDatePlusOneDay = new Date(eventDate.getTime() + 24 * 60 * 60 * 1000);
return now > eventDatePlusOneDay; return now > eventDatePlusOneDay;
// const now = new Date();
// return eventDate < now; // return eventDate < now;
}; };