Explorar o código

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

zhongming4762 hai 7 meses
pai
achega
639ea96bb9
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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);
   }
 }