mirror of
https://github.com/riwiwa/muzi.git
synced 2026-02-28 11:56:57 -08:00
format time locally for profile history
This commit is contained in:
@@ -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"))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user