diff options
Diffstat (limited to 'nuldoc-src/components/post_page_entry.ts')
| -rw-r--r-- | nuldoc-src/components/post_page_entry.ts | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/nuldoc-src/components/post_page_entry.ts b/nuldoc-src/components/post_page_entry.ts index e825dfd..685c03a 100644 --- a/nuldoc-src/components/post_page_entry.ts +++ b/nuldoc-src/components/post_page_entry.ts @@ -4,6 +4,7 @@ import { getPostUpdatedDate, PostPage, } from "../pages/post.ts"; +import { dateToString } from "../revision.ts"; export function postPageEntry(post: PostPage): Element { return el( @@ -27,8 +28,8 @@ export function postPageEntry(post: PostPage): Element { [["class", "entry-footer"]], el( "time", - [["datetime", getPostCreatedDate(post)]], - text(getPostCreatedDate(post)), + [["datetime", dateToString(getPostCreatedDate(post))]], + text(dateToString(getPostCreatedDate(post))), ), text(" 投稿"), ...(post.revisions.length > 1 @@ -36,8 +37,8 @@ export function postPageEntry(post: PostPage): Element { text("、"), el("time", [[ "datetime", - getPostUpdatedDate(post), - ]], text(getPostUpdatedDate(post))), + dateToString(getPostUpdatedDate(post)), + ]], text(dateToString(getPostUpdatedDate(post)))), text(" 更新"), ] : []), |
