Skip to content

Commit 639ea96

Browse files
committed
fix: resolve the issue of logout failure caused by the timezone store
1 parent 565be77 commit 639ea96

File tree

1 file changed

+1
-1
lines changed
  • packages/@core/base/shared/src/utils

1 file changed

+1
-1
lines changed

packages/@core/base/shared/src/utils/date.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ export function formatDate(time: FormatDate, format = 'YYYY-MM-DD') {
1616
return date.tz().format(format);
1717
} catch (error) {
1818
console.error(`Error formatting date: ${error}`);
19-
return time;
19+
return String(time);
2020
}
2121
}
2222

0 commit comments

Comments
 (0)