Skip to content

Commit 4730742

Browse files
committed
remove utc in date exports
1 parent a618885 commit 4730742

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

frontend/src/hooks/useEventSelection.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,16 +55,16 @@ export function useEventSelection(view: "grid" | "calendar") {
5555

5656
// Current timestamp in UTC for DTSTAMP
5757
const now = new Date();
58-
const dtstamp = now.toISOString().replace(/[-:]/g, '').split('.')[0] + 'Z';
58+
const dtstamp = now.toISOString().replace(/[-:]/g, '').split('.')[0];
5959

6060
events.forEach((event) => {
6161
const startDate = event.date.replace(/-/g, '');
6262
const startTime = event.start_time.replace(/:/g, '');
6363
const endTime = event.end_time ? event.end_time.replace(/:/g, '') : startTime;
6464

6565
lines.push('BEGIN:VEVENT');
66-
lines.push(`DTSTART:${startDate}T${startTime}Z`);
67-
lines.push(`DTEND:${startDate}T${endTime}Z`);
66+
lines.push(`DTSTART:${startDate}T${startTime}`);
67+
lines.push(`DTEND:${startDate}T${endTime}`);
6868
lines.push(`DTSTAMP:${dtstamp}`);
6969
lines.push(`SUMMARY:${escapeText(event.name)}`);
7070
if (event.location) {

0 commit comments

Comments
 (0)