fix:#19 removed rmTZ function

This commit is contained in:
Elmar Kresse
2024-06-27 20:52:26 +02:00
parent 86146e7f23
commit a00d8f6501
2 changed files with 3 additions and 7 deletions

View File

@ -30,7 +30,7 @@ import interactionPlugin from "@fullcalendar/interaction";
import timeGridPlugin from "@fullcalendar/timegrid";
import iCalenderPlugin from "@fullcalendar/icalendar";
import router from "@/router";
import { formatYearMonthDay, removeTZ } from "@/helpers/dates.ts";
import { formatYearMonthDay } from "@/helpers/dates.ts";
import { useI18n } from "vue-i18n";
import { useQuery } from "@tanstack/vue-query";
import tokenStore from "@/store/tokenStore.ts";
@ -50,8 +50,8 @@ const op = ref();
const clickedEvent = ref();
const toggle = (info: EventClickArg) => {
const start = !info.event.start ? "" : removeTZ(info.event.start);
const end = !info.event.end ? "" : removeTZ(info.event.end);
const start = !info.event.start ? "" : info.event.start;
const end = !info.event.end ? "" : info.event.end;
if (op.value.visible) {
clickedEvent.value = null;

View File

@ -22,7 +22,3 @@
export function formatYearMonthDay(date: Date): string {
return date.toISOString().split("T")[0].replace(/-/g, "");
}
export function removeTZ(date: Date): Date {
return new Date(date.getTime() + date.getTimezoneOffset() * 60000);
}