mirror of
https://github.com/go-gitea/gitea.git
synced 2025-09-11 06:06:38 +00:00
Don't store assets modified time into generated files (#18193)
This commit is contained in:
@@ -18,8 +18,14 @@ import (
|
||||
"time"
|
||||
|
||||
"code.gitea.io/gitea/modules/log"
|
||||
"code.gitea.io/gitea/modules/timeutil"
|
||||
)
|
||||
|
||||
// GlobalModTime provide a gloabl mod time for embedded asset files
|
||||
func GlobalModTime(filename string) time.Time {
|
||||
return timeutil.GetExecutableModTime()
|
||||
}
|
||||
|
||||
func fileSystem(dir string) http.FileSystem {
|
||||
return Assets
|
||||
}
|
||||
|
Reference in New Issue
Block a user