diff --git a/packages/lib/services/noteList/renderViewProps.test.ts b/packages/lib/services/noteList/renderViewProps.test.ts index 8c23141fe..158229bc8 100644 --- a/packages/lib/services/noteList/renderViewProps.test.ts +++ b/packages/lib/services/noteList/renderViewProps.test.ts @@ -56,5 +56,4 @@ describe('renderViewProps', () => { }, }); }); - }); diff --git a/packages/lib/services/noteList/renderViewProps.ts b/packages/lib/services/noteList/renderViewProps.ts index 106c905f1..0a71b88c9 100644 --- a/packages/lib/services/noteList/renderViewProps.ts +++ b/packages/lib/services/noteList/renderViewProps.ts @@ -14,11 +14,11 @@ export interface RenderViewPropsOptions { const renderViewProp = (name: ListRendererDependency, value: any, options: RenderViewPropsOptions) => { const renderers: Partial string>> = { - 'note.user_updated_time': () => time.unixMsToLocalDateTime(value), - 'note.user_created_time': () => time.unixMsToLocalDateTime(value), - 'note.updated_time': () => time.unixMsToLocalDateTime(value), - 'note.created_time': () => time.unixMsToLocalDateTime(value), - 'note.todo_completed': () => value ? time.unixMsToLocalDateTime(value) : '', + 'note.user_updated_time': () => time.formatMsToLocal(value), + 'note.user_created_time': () => time.formatMsToLocal(value), + 'note.updated_time': () => time.formatMsToLocal(value), + 'note.created_time': () => time.formatMsToLocal(value), + 'note.todo_completed': () => value ? time.formatMsToLocal(value) : '', 'note.tags': () => value ? value.map((t: TagEntity) => t.title).join(', ') : '', 'note.title': () => options.noteTitleHtml, };