|
|
|
@@ -5,13 +5,12 @@ |
|
|
|
package storage |
|
|
|
|
|
|
|
import ( |
|
|
|
"github.com/unknwon/com" |
|
|
|
"io" |
|
|
|
"path" |
|
|
|
"strconv" |
|
|
|
"strings" |
|
|
|
|
|
|
|
"github.com/unknwon/com" |
|
|
|
|
|
|
|
"code.gitea.io/gitea/modules/log" |
|
|
|
"code.gitea.io/gitea/modules/obs" |
|
|
|
"code.gitea.io/gitea/modules/setting" |
|
|
|
@@ -213,7 +212,7 @@ func GetObsListObject(jobName, parentDir string) ([]FileInfo, error) { |
|
|
|
} |
|
|
|
|
|
|
|
fileInfo := FileInfo{ |
|
|
|
ModTime: val.LastModified.Format("2006-01-02 15:04:05"), |
|
|
|
ModTime: val.LastModified.Local().Format("2006-01-02 15:04:05"), |
|
|
|
FileName: fileName, |
|
|
|
Size: val.Size, |
|
|
|
IsDir:isDir, |
|
|
|
|