From a0bb229173426619252cc2909ec0f79984726bb8 Mon Sep 17 00:00:00 2001 From: hobokenchicken Date: Tue, 7 Jul 2026 14:01:27 +0000 Subject: [PATCH] fix: DMs now show full date+time like channels [DD.MM.YYYY @ HH:MM] --- web/src/components/DMChat.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/web/src/components/DMChat.tsx b/web/src/components/DMChat.tsx index f1d0c4b..24412ae 100644 --- a/web/src/components/DMChat.tsx +++ b/web/src/components/DMChat.tsx @@ -18,9 +18,12 @@ import { ExpandableImage } from "./ExpandableImage.tsx"; function formatTime(iso: string): string { const date = new Date(iso); + const day = date.getDate().toString().padStart(2, "0"); + const month = (date.getMonth() + 1).toString().padStart(2, "0"); + const year = date.getFullYear(); const hours = date.getHours().toString().padStart(2, "0"); const minutes = date.getMinutes().toString().padStart(2, "0"); - return `${hours}:${minutes}`; + return `[${day}.${month}.${year} @ ${hours}:${minutes}]`; } function renderDMContent(content: string) {