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

This commit is contained in:
zhongming4762 2025-10-30 17:12:45 +08:00
parent 565be77e96
commit 639ea96bb9

View File

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