format dates to timezone

This commit is contained in:
Julian Krauser 2024-11-07 10:49:50 +01:00
parent 747adf7c69
commit 4148b3191e
5 changed files with 61 additions and 23 deletions

View file

@ -35,6 +35,7 @@ export default defineComponent({
...mapState(useCalendarStore, ["formattedItems"]),
calendarOptions() {
return {
timeZone: "local",
locale: deLocale,
plugins: [dayGridPlugin, timeGridPlugin, interactionPlugin],
initialView: "dayGridMonth",
@ -67,6 +68,7 @@ export default defineComponent({
...mapActions(useModalStore, ["openModal"]),
...mapActions(useCalendarStore, ["fetchCalendars"]),
select(e: any) {
console.log(e);
this.openModal(
markRaw(defineAsyncComponent(() => import("@/components/admin/club/calendar/CreateCalendarModal.vue"))),
{