Lightweight and easily self-hostable Git forge. git.poy.ooo
git-forge selfhosting homebrew
Something went wrong. Try again.
12345678910111213// 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);});