From e01803ce9d54e30ca6606757e827fa436de4d09a Mon Sep 17 00:00:00 2001 From: zhongming4762 Date: Wed, 22 Oct 2025 20:39:00 +0800 Subject: [PATCH] feat: increase support for multiple time zones --- apps/web-antd/src/store/user-profile.ts | 4 +++- apps/web-ele/src/store/user-profile.ts | 4 +++- apps/web-naive/src/store/user-profile.ts | 4 +++- .../effects/layouts/src/widgets/timezone/timezone-button.vue | 4 ++-- 4 files changed, 11 insertions(+), 5 deletions(-) diff --git a/apps/web-antd/src/store/user-profile.ts b/apps/web-antd/src/store/user-profile.ts index 0fd21569..6c552e4f 100644 --- a/apps/web-antd/src/store/user-profile.ts +++ b/apps/web-antd/src/store/user-profile.ts @@ -38,7 +38,9 @@ const useUserProfileStore = defineStore('user-profile', () => { } } - initTimezone(); + initTimezone().catch((error) => { + console.error('Failed to initialize timezone during store setup:', error); + }); return { timezone: timezoneRef, diff --git a/apps/web-ele/src/store/user-profile.ts b/apps/web-ele/src/store/user-profile.ts index 0fd21569..6c552e4f 100644 --- a/apps/web-ele/src/store/user-profile.ts +++ b/apps/web-ele/src/store/user-profile.ts @@ -38,7 +38,9 @@ const useUserProfileStore = defineStore('user-profile', () => { } } - initTimezone(); + initTimezone().catch((error) => { + console.error('Failed to initialize timezone during store setup:', error); + }); return { timezone: timezoneRef, diff --git a/apps/web-naive/src/store/user-profile.ts b/apps/web-naive/src/store/user-profile.ts index 0fd21569..6c552e4f 100644 --- a/apps/web-naive/src/store/user-profile.ts +++ b/apps/web-naive/src/store/user-profile.ts @@ -38,7 +38,9 @@ const useUserProfileStore = defineStore('user-profile', () => { } } - initTimezone(); + initTimezone().catch((error) => { + console.error('Failed to initialize timezone during store setup:', error); + }); return { timezone: timezoneRef, diff --git a/packages/effects/layouts/src/widgets/timezone/timezone-button.vue b/packages/effects/layouts/src/widgets/timezone/timezone-button.vue index 11798ed5..5a1c8318 100644 --- a/packages/effects/layouts/src/widgets/timezone/timezone-button.vue +++ b/packages/effects/layouts/src/widgets/timezone/timezone-button.vue @@ -70,7 +70,7 @@ const handleClickItem = (timezone: string) => { @click="handleClickItem(item)" > - + @@ -79,7 +79,7 @@ const handleClickItem = (timezone: string) => {