2024-08-01 13:46:03 +03:00
|
|
|
function replaceDates() {
|
|
|
|
for (let el of document.querySelectorAll(".date-rfc3339")) {
|
|
|
|
let date = new Date(Date.parse(el.textContent));
|
2024-12-29 20:01:25 +03:00
|
|
|
el.title = el.textContent;
|
2024-08-01 13:46:03 +03:00
|
|
|
el.textContent = date.toLocaleString();
|
2024-12-29 20:01:25 +03:00
|
|
|
el.classList.replace("date-rfc3339", "tooltipped");
|
2024-08-01 13:46:03 +03:00
|
|
|
}
|
2024-08-01 00:25:42 +03:00
|
|
|
}
|