Dateien nach "frontend/src/tools" hochladen

This commit is contained in:
2026-05-28 00:50:18 +02:00
parent d69613259c
commit fa5e2dc09a

View File

@@ -388,7 +388,7 @@ function InfoBox({ color, children }) {
} }
function formatMsgTime(isoStr) { function formatMsgTime(isoStr) {
const d = new Date(isoStr); const d = new Date((isoStr || '').replace(' ', 'T'));
const now = new Date(); const now = new Date();
const isToday = d.toDateString() === now.toDateString(); const isToday = d.toDateString() === now.toDateString();
const isThisYear = d.getFullYear() === now.getFullYear(); const isThisYear = d.getFullYear() === now.getFullYear();