proper template generation time if not in cache
This commit is contained in:
parent
6b1205e4f3
commit
b9c0bd863b
|
@ -45,7 +45,9 @@ func makeBasicTemplateData(name string) models.TemplateData {
|
||||||
"GeneratedAt": cacheItem.GeneratedAt.Format(time.UnixDate),
|
"GeneratedAt": cacheItem.GeneratedAt.Format(time.UnixDate),
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
strMap = make(map[string]string)
|
strMap = map[string]string{
|
||||||
|
"GeneratedAt": time.Now().Format(time.UnixDate),
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
templateData := models.TemplateData{
|
templateData := models.TemplateData{
|
||||||
|
|
Loading…
Reference in a new issue