Removed Z
This commit is contained in:
parent
928969b8b6
commit
feeb94c9cf
@ -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");
|
||||||
|
Loading…
Reference in New Issue
Block a user