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