mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-12 12:28:42 +00:00
feat: add responvise page view (#2453)
This commit is contained in:
@@ -10,7 +10,7 @@ import type { BlockSuiteWorkspace } from '../../../shared';
|
||||
dayjs.extend(localizedFormat);
|
||||
export const formatDate = (date?: number | unknown) => {
|
||||
const dateStr =
|
||||
typeof date === 'number' ? dayjs(date).format('YYYY-MM-DD HH:mm') : '--';
|
||||
typeof date === 'number' ? dayjs(date).format('MM-DD HH:mm') : '--';
|
||||
return dateStr;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user