Add Accept-Language header for requests

This commit is contained in:
VnPower 2023-08-24 21:26:35 +07:00
parent 85b7e918ab
commit 5ebaaeb6d4
Signed by: vnpower
GPG key ID: 881DE3DEB966106C

View file

@ -167,5 +167,11 @@ func GetTemplateFunctions() template.FuncMap {
}
return false
},
"reformatDate": func(s string) string {
if len(s) != 8 {
return s
}
return fmt.Sprintf("%s-%s-%s", s[4:], s[2:4], s[:2])
},
}
}