修复导出备份时资产创建时间格式不正确的问题 close #205

This commit is contained in:
dushixiang
2021-11-20 17:51:17 +08:00
parent a3d2d4acc5
commit 18bf4d4b80

View File

@ -109,6 +109,7 @@ func BackupExportEndpoint(c echo.Context) error {
for key := range attributeMap { for key := range attributeMap {
itemMap[key] = attributeMap[key] itemMap[key] = attributeMap[key]
} }
itemMap["created"] = asset.Created.Format("2006-01-02 15:04:05")
assetMaps = append(assetMaps, itemMap) assetMaps = append(assetMaps, itemMap)
} }
} }