Use UTC timestamp for go import

This commit is contained in:
Melon 2022-04-05 09:15:42 +01:00
parent 1c9efe37e2
commit ffddc32073
Signed by: melon
GPG Key ID: B0ADD5395BCDAAB6

View File

@ -123,7 +123,7 @@ func (m *Module) homepage(rw http.ResponseWriter, req *http.Request, state *util
http.Error(rw, err.Error(), http.StatusInternalServerError)
return
}
selCommitTime = commit.CommitMeta.Created.Format("20060102150405")
selCommitTime = commit.CommitMeta.Created.UTC().Format("20060102150405")
selCommitHash = commit.CommitMeta.SHA[:12]
goMod, _, err := giteaClient.GetFile(selOrg, selRepo, ref.Object.SHA, "go.mod")
if err != nil {