maybe fix race condition

This commit is contained in:
slonkazoid 2024-08-01 01:10:08 +03:00
parent 47476ceb3d
commit 96922f2483
Signed by: slonk
SSH key fingerprint: SHA256:tbZfJX4IOvZ0LGWOWu5Ijo8jfMPi78TU7x1VoEeCIjM

View file

@ -1,4 +1,5 @@
for (let el of document.querySelectorAll(".date-rfc3339")) { for (let el of document.querySelectorAll(".date-rfc3339")) {
let date = new Date(Date.parse(el.textContent)); let date = new Date(Date.parse(el.textContent));
el.textContent = date.toLocaleString(); el.textContent = date.toLocaleString();
el.classList.remove("date-rfc3339");
} }