aboutsummaryrefslogtreecommitdiffstats
path: root/stores
diff options
context:
space:
mode:
authorLeonardo Bishop <me@leonardobishop.com>2025-01-23 15:59:58 +0000
committerLeonardo Bishop <me@leonardobishop.com>2025-01-23 15:59:58 +0000
commit0248517c6845a6c755d40c89d3d769ce7d60bd03 (patch)
treedef59a310f2bbe0a1e7913b99547200da686ecc2 /stores
parent850affbd55fee9cd48a82ade94a3a5e60fd737a8 (diff)
Some more shit
Diffstat (limited to 'stores')
-rw-r--r--stores/schedule.ts4
1 files changed, 4 insertions, 0 deletions
diff --git a/stores/schedule.ts b/stores/schedule.ts
index df2c1ec..e81055e 100644
--- a/stores/schedule.ts
+++ b/stores/schedule.ts
@@ -1,4 +1,5 @@
import { TZDate } from "@date-fns/tz";
+import { addDays } from "date-fns";
import { defineStore } from "pinia";
interface Schedule {
@@ -87,6 +88,9 @@ export const useScheduleStore = defineStore('schedule', () => {
tracks.value[track.name] = track
});
+ newSchedule.conference.start = new TZDate(newSchedule.conference.start, newSchedule.conference.timeZoneName)
+ newSchedule.conference.end = addDays(new TZDate(newSchedule.conference.end, newSchedule.conference.timeZoneName), 1)
+
events.value = []
newSchedule.days.forEach(day => {
day.start = new TZDate(day.start, newSchedule.conference.timeZoneName)