// time.js - licensed under GNU AGPLv3 (Poyo)
//
// all it does is replace all .local-time instances in with the correct localized time.
// EXAMPLE:
document.querySelectorAll(".local-time").forEach(el => {
const date = new Date(el.dateTime);
el.textContent = new Intl.DateTimeFormat(undefined, {
dateStyle: "medium",
timeStyle: "short"
}).format(date);
});