lets-go:14.1 passing tests
This commit is contained in:
parent
15d817c5d1
commit
52e1bbaa70
@ -22,7 +22,11 @@ type templateData struct {
|
||||
|
||||
// humanDate ...
|
||||
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{
|
||||
|
Loading…
Reference in New Issue
Block a user