mirror of
https://gitlab.dit.htwk-leipzig.de/htwk-software/htwkalender-pwa.git
synced 2025-08-07 04:09:17 +02:00
fix:#19 removed rmTZ function
This commit is contained in:
@@ -30,7 +30,7 @@ import interactionPlugin from "@fullcalendar/interaction";
|
|||||||
import timeGridPlugin from "@fullcalendar/timegrid";
|
import timeGridPlugin from "@fullcalendar/timegrid";
|
||||||
import iCalenderPlugin from "@fullcalendar/icalendar";
|
import iCalenderPlugin from "@fullcalendar/icalendar";
|
||||||
import router from "@/router";
|
import router from "@/router";
|
||||||
import { formatYearMonthDay, removeTZ } from "@/helpers/dates.ts";
|
import { formatYearMonthDay } from "@/helpers/dates.ts";
|
||||||
import { useI18n } from "vue-i18n";
|
import { useI18n } from "vue-i18n";
|
||||||
import { useQuery } from "@tanstack/vue-query";
|
import { useQuery } from "@tanstack/vue-query";
|
||||||
import tokenStore from "@/store/tokenStore.ts";
|
import tokenStore from "@/store/tokenStore.ts";
|
||||||
@@ -50,8 +50,8 @@ const op = ref();
|
|||||||
const clickedEvent = ref();
|
const clickedEvent = ref();
|
||||||
|
|
||||||
const toggle = (info: EventClickArg) => {
|
const toggle = (info: EventClickArg) => {
|
||||||
const start = !info.event.start ? "" : removeTZ(info.event.start);
|
const start = !info.event.start ? "" : info.event.start;
|
||||||
const end = !info.event.end ? "" : removeTZ(info.event.end);
|
const end = !info.event.end ? "" : info.event.end;
|
||||||
|
|
||||||
if (op.value.visible) {
|
if (op.value.visible) {
|
||||||
clickedEvent.value = null;
|
clickedEvent.value = null;
|
||||||
|
@@ -22,7 +22,3 @@
|
|||||||
export function formatYearMonthDay(date: Date): string {
|
export function formatYearMonthDay(date: Date): string {
|
||||||
return date.toISOString().split("T")[0].replace(/-/g, "");
|
return date.toISOString().split("T")[0].replace(/-/g, "");
|
||||||
}
|
}
|
||||||
|
|
||||||
export function removeTZ(date: Date): Date {
|
|
||||||
return new Date(date.getTime() + date.getTimezoneOffset() * 60000);
|
|
||||||
}
|
|
||||||
|
Reference in New Issue
Block a user