]> source.dussan.org Git - gitea.git/commit
Fix wrong last modify time (#32102) (#32104)
authorGiteabot <teabot@gitea.io>
Sun, 22 Sep 2024 19:12:57 +0000 (03:12 +0800)
committerGitHub <noreply@github.com>
Sun, 22 Sep 2024 19:12:57 +0000 (19:12 +0000)
commitaf0cab23ea62d3af5bba7f1dd01ff9dc192b1b5b
tree9f848aa354156de4ad582d8481bc7fb2528d04b8
parent73066e3f97d4bf287bd8d506bab7f13ba4155c2c
Fix wrong last modify time (#32102) (#32104)

Backport #32102 by @lunny

Fix #31930 and more places which use `http.TimeFormat` wrongly.
`http.TimeFormat` requires a UTC time. refer to
https://pkg.go.dev/net/http#TimeFormat

Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
modules/httpcache/httpcache.go
modules/httplib/serve.go
routers/api/packages/maven/maven.go
routers/web/repo/githttp.go