From a0e729fde5aac3d971562538384373da86e72a9d Mon Sep 17 00:00:00 2001 From: Gregor Vostrak Date: Mon, 11 Mar 2024 18:09:38 +0100 Subject: [PATCH] fix daysjs utc plugin extension --- resources/js/utils/useCurrentTimeEntry.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/resources/js/utils/useCurrentTimeEntry.ts b/resources/js/utils/useCurrentTimeEntry.ts index 00dfc311..6b603368 100644 --- a/resources/js/utils/useCurrentTimeEntry.ts +++ b/resources/js/utils/useCurrentTimeEntry.ts @@ -4,8 +4,11 @@ import { api } from '../../../openapi.json.client'; import type { ZodiosResponseByAlias } from '@zodios/core'; import type { SolidTimeApi } from '@/utils/api'; import dayjs from 'dayjs'; +import utc from 'dayjs/plugin/utc'; import { getCurrentOrganizationId, getCurrentUserId } from '@/utils/useUser'; +dayjs.extend(utc); + type TimeEntryResponse = ZodiosResponseByAlias; export type TimeEntry = TimeEntryResponse['data'][0]; const emptyTimeEntry = {