Browse Source

cloudbrain model

pull/829/head
lewis 3 years ago
parent
commit
48c838a667
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