mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-13 12:55:00 +00:00
feat(core): page info ui (#5729)
this PR includes the main table view in the page detail page
This commit is contained in:
@@ -8,10 +8,10 @@ const dateFormatter = new Intl.DateTimeFormat(undefined, {
|
||||
day: 'numeric',
|
||||
});
|
||||
|
||||
export const timestampToLocalTime = (ts: string) => {
|
||||
export const timestampToLocalTime = (ts: string | number) => {
|
||||
return timeFormatter.format(new Date(ts));
|
||||
};
|
||||
|
||||
export const timestampToLocalDate = (ts: string) => {
|
||||
export const timestampToLocalDate = (ts: string | number) => {
|
||||
return dateFormatter.format(new Date(ts));
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user