Dateien nach "frontend/src/tools" hochladen

This commit is contained in:
2026-05-28 00:54:10 +02:00
parent fa5e2dc09a
commit c9417777bb

View File

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