fix: DMs now show full date+time like channels [DD.MM.YYYY @ HH:MM]
Release Desktop Apps / build-windows (push) Failing after 3h0m23s
Release Desktop Apps / build-linux (push) Has been cancelled
Release Desktop Apps / release (push) Has been cancelled

This commit is contained in:
2026-07-07 14:01:27 +00:00
parent c86c602294
commit a0bb229173
+4 -1
View File
@@ -18,9 +18,12 @@ import { ExpandableImage } from "./ExpandableImage.tsx";
function formatTime(iso: string): string { function formatTime(iso: string): string {
const date = new Date(iso); 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 hours = date.getHours().toString().padStart(2, "0");
const minutes = date.getMinutes().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) { function renderDMContent(content: string) {