Dateien nach "frontend/src/tools" hochladen
This commit is contained in:
@@ -388,7 +388,7 @@ function InfoBox({ color, children }) {
|
||||
}
|
||||
|
||||
function formatMsgTime(isoStr) {
|
||||
const d = new Date(isoStr);
|
||||
const d = new Date((isoStr || '').replace(' ', 'T'));
|
||||
const now = new Date();
|
||||
const isToday = d.toDateString() === now.toDateString();
|
||||
const isThisYear = d.getFullYear() === now.getFullYear();
|
||||
|
||||
Reference in New Issue
Block a user