Jin Mao 7 kuukautta sitten
vanhempi
commit
f8a7a0a9a2

+ 3 - 3
packages/@core/base/shared/src/utils/date.ts

@@ -1,6 +1,6 @@
-import dayjs from 'dayjs';
-import timezone from 'dayjs/plugin/timezone';
-import utc from 'dayjs/plugin/utc';
+import dayjs from "dayjs";
+import timezone from "dayjs/plugin/timezone";
+import utc from "dayjs/plugin/utc";
 
 dayjs.extend(utc);
 dayjs.extend(timezone);

+ 4 - 7
packages/stores/src/modules/timezone.ts

@@ -1,12 +1,9 @@
-import { ref, unref } from 'vue';
+import { ref, unref } from "vue";
 
-import { DEFAULT_TIME_ZONE_OPTIONS } from '@vben-core/preferences';
-import {
-  getCurrentTimezone,
-  setCurrentTimezone,
-} from '@vben-core/shared/utils';
+import { DEFAULT_TIME_ZONE_OPTIONS } from "@vben-core/preferences";
+import { getCurrentTimezone, setCurrentTimezone } from "@vben-core/shared/utils";
 
-import { acceptHMRUpdate, defineStore } from 'pinia';
+import { acceptHMRUpdate, defineStore } from "pinia";
 
 interface TimezoneHandler {
   getTimezone?: () => Promise<null | string | undefined>;