feat: increase support for multiple time zones

This commit is contained in:
zhongming4762
2025-10-22 20:18:25 +08:00
parent 0a8339a405
commit b029f77b6a
10 changed files with 33 additions and 22 deletions

View File

@@ -17,11 +17,11 @@ const useUserProfileStore = defineStore('user-profile', () => {
* @param timezone 时区字符串
*/
async function setTimezone(timezone: string) {
// 保存用户的时区设置
await setUserTimezoneApi(timezone);
timezoneRef.value = timezone;
// 设置dayjs默认时区
setDefaultTimezone(timezone);
// 保存用户的时区设置
await setUserTimezoneApi(timezone);
}
/**