lets-go:14.1 passing tests

This commit is contained in:
tamsin johnson 2024-02-13 11:59:38 -08:00
parent 15d817c5d1
commit 52e1bbaa70

View File

@ -22,7 +22,11 @@ type templateData struct {
// humanDate ... // humanDate ...
func humanDate(t time.Time) string { func humanDate(t time.Time) string {
return t.Format("02 Jan 2006 at 15:04") if t.IsZero() {
return ""
}
return t.UTC().Format("02 Jan 2006 at 15:04")
} }
var functions = template.FuncMap{ var functions = template.FuncMap{