This commit is contained in:
Daniel 2024-01-01 23:35:20 +08:00
parent 6462107872
commit aed2020e3f
No known key found for this signature in database
GPG key ID: 86211BA83DF03017

View file

@ -598,8 +598,10 @@ func renderTemplateCol(ial map[string]string, tplContent string, rowValues []*av
}
if "" == ial["updated"] {
block := getRowBlockValue(rowValues)
if nil != block && nil != block.Block {
ial["updated"] = time.UnixMilli(block.Block.Updated).Format("20060102150405")
}
}
goTpl := template.New("").Delims(".action{", "}")
goTpl = goTpl.Funcs(util.BuiltInTemplateFuncs())