Removed Z

This commit is contained in:
retoor 2025-02-01 17:39:57 +01:00
parent 928969b8b6
commit feeb94c9cf

View File

@ -53,8 +53,6 @@ class MessageListElement extends HTMLElement {
return `just now` return `just now`
} }
timeDescription(isoDate) { timeDescription(isoDate) {
if (!isoDate.endsWith("Z"))
isoDate += "Z"
const date = new Date(isoDate) const date = new Date(isoDate)
const hours = String(date.getHours()).padStart(2, "0"); const hours = String(date.getHours()).padStart(2, "0");
const minutes = String(date.getMinutes()).padStart(2, "0"); const minutes = String(date.getMinutes()).padStart(2, "0");