Use UTC timestamp for go import
This commit is contained in:
parent
1c9efe37e2
commit
ffddc32073
@ -123,7 +123,7 @@ func (m *Module) homepage(rw http.ResponseWriter, req *http.Request, state *util
|
|||||||
http.Error(rw, err.Error(), http.StatusInternalServerError)
|
http.Error(rw, err.Error(), http.StatusInternalServerError)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
selCommitTime = commit.CommitMeta.Created.Format("20060102150405")
|
selCommitTime = commit.CommitMeta.Created.UTC().Format("20060102150405")
|
||||||
selCommitHash = commit.CommitMeta.SHA[:12]
|
selCommitHash = commit.CommitMeta.SHA[:12]
|
||||||
goMod, _, err := giteaClient.GetFile(selOrg, selRepo, ref.Object.SHA, "go.mod")
|
goMod, _, err := giteaClient.GetFile(selOrg, selRepo, ref.Object.SHA, "go.mod")
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
Loading…
Reference in New Issue
Block a user