calendar fix started

This commit is contained in:
victorAnumudu
2025-01-17 23:21:38 +01:00
parent 4079d27017
commit 7d7a15e386
6 changed files with 321 additions and 157 deletions
+29
View File
@@ -0,0 +1,29 @@
let eventGuid = 0;
let todayStr = new Date().toISOString().replace(/T.*$/, ''); // YYYY-MM-DD of today
export const INITIAL_EVENTS = [
{
id: createEventId(),
title: 'All-day event',
start: new Date('2025-01-19'),
end: new Date('2025-01-20'),
// color: 'blue'
},
{
id: createEventId(),
title: 'Timed event',
start: todayStr + 'T12:00:00',
// color: 'red'
},
{
id: createEventId(),
title: 'Timed event 2',
start: new Date('2025-01-25'),
start: new Date('2025-01-26'),
// color: 'blue'
},
];
export function createEventId() {
return String(eventGuid++);
}