Browse Source

Merge branch 'zouap_static' of https://git.openi.org.cn/OpenI/aiforge into zouap_static

pull/851/head
zouap 3 years ago
parent
commit
da73d2d76e
1 changed files with 5 additions and 0 deletions
  1. +5
    -0
      routers/repo/cloudbrain.go

+ 5
- 0
routers/repo/cloudbrain.go View File

@@ -528,6 +528,11 @@ func CloudBrainShowModels(ctx *context.Context) {
return
}

for i, fileInfo := range fileInfos {
temp, _ := time.Parse("2006-01-02 15:04:05", fileInfo.ModTime)
fileInfos[i].ModTime = temp.Local().Format("2006-01-02 15:04:05")
}

ctx.Data["Path"] = dirArray
ctx.Data["Dirs"] = fileInfos
ctx.Data["task"] = task


Loading…
Cancel
Save