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