Skip to content

Commit ec5b30a

Browse files
Yushin-Lclaude
andcommitted
Add timestamp to comments (date + time in ko-KR format)
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 3fac46e commit ec5b30a

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

src/components/comments/CommentItem.tsx

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,13 @@ export default function CommentItem({
5353
{authorProfile?.display_name ?? "알 수 없음"}
5454
</span>
5555
<span className="text-zinc-400 dark:text-zinc-500">
56-
{new Date(comment.created_at).toLocaleDateString("ko-KR")}
56+
{new Date(comment.created_at).toLocaleString("ko-KR", {
57+
year: "numeric",
58+
month: "2-digit",
59+
day: "2-digit",
60+
hour: "2-digit",
61+
minute: "2-digit",
62+
})}
5763
</span>
5864
</div>
5965

0 commit comments

Comments
 (0)