From 639ea96bb9b382e662cb7fddb9df4c4ecce676da Mon Sep 17 00:00:00 2001 From: zhongming4762 Date: Thu, 30 Oct 2025 17:12:45 +0800 Subject: [PATCH] fix: resolve the issue of logout failure caused by the timezone store --- packages/@core/base/shared/src/utils/date.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/@core/base/shared/src/utils/date.ts b/packages/@core/base/shared/src/utils/date.ts index 84d03d26..b56023c8 100644 --- a/packages/@core/base/shared/src/utils/date.ts +++ b/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); } }