fix: resolve the issue of logout failure caused by the timezone store
parent
565be77e96
commit
639ea96bb9
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue