From ffddc32073132b3d87745b806d67b9f3101af05b Mon Sep 17 00:00:00 2001 From: MrMelon Date: Tue, 5 Apr 2022 09:15:42 +0100 Subject: [PATCH] Use UTC timestamp for go import --- module/gitea/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/gitea/main.go b/module/gitea/main.go index bf38542..c6bfdbd 100644 --- a/module/gitea/main.go +++ b/module/gitea/main.go @@ -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 {