Browse Source

Merge pull request '正确显示云脑1模型时间' (#829) from download-model-error into V20211115

Reviewed-on: https://git.openi.org.cn/OpenI/aiforge/pulls/829
Reviewed-by: ychao_1983 <ychao_1983@sina.com>
pull/836/head
ychao_1983 3 years ago
parent
commit
5140020949
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