format time locally for profile history

This commit is contained in:
2026-02-13 23:13:32 -08:00
parent b3c2446add
commit 78bc1a9974
4 changed files with 41 additions and 6 deletions

View File

@@ -24,9 +24,11 @@ var templates *template.Template
// Declares all functions for the HTML templates and parses them
func init() {
funcMap := template.FuncMap{
"sub": sub,
"add": add,
"formatInt": formatInt,
"sub": sub,
"add": add,
"formatInt": formatInt,
"formatTimestamp": formatTimestamp,
"formatTimestampFull": formatTimestampFull,
}
templates = template.Must(template.New("").Funcs(funcMap).ParseGlob("./templates/*.gohtml"))
}