forked from MarseyWorld/MarseyWorld
remove second in chat timestamp (more plaesing to the eye this way)
parent
a03e1961d7
commit
8916ae279c
|
@ -1,5 +1,5 @@
|
||||||
function formatDate(d) {
|
function formatDate(d) {
|
||||||
return d.toLocaleTimeString()
|
return d.toLocaleTimeString([], {hour: '2-digit', minute:'2-digit'})
|
||||||
}
|
}
|
||||||
|
|
||||||
for (const e of timestamps) {
|
for (const e of timestamps) {
|
||||||
|
|
Loading…
Reference in New Issue