removed the old event admin components and pages
This commit is contained in:
7
resources/js/admin/mobile/eventDate.ts
Normal file
7
resources/js/admin/mobile/eventDate.ts
Normal file
@@ -0,0 +1,7 @@
|
||||
export function isPastEvent(dateIso?: string | null): boolean {
|
||||
if (!dateIso) return false;
|
||||
const date = new Date(dateIso);
|
||||
if (Number.isNaN(date.getTime())) return false;
|
||||
const now = new Date();
|
||||
return date.getTime() < now.getTime();
|
||||
}
|
||||
Reference in New Issue
Block a user