瀏覽代碼

fix: resolve the issue of logout failure caused by the timezone store

zhongming4762 7 月之前
父節點
當前提交
639ea96bb9
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      packages/@core/base/shared/src/utils/date.ts

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

@@ -16,7 +16,7 @@ export function formatDate(time: FormatDate, format = 'YYYY-MM-DD') {
     return date.tz().format(format);
   } catch (error) {
     console.error(`Error formatting date: ${error}`);
-    return time;
+    return String(time);
   }
 }