diff options
Diffstat (limited to 'modules/public/static.go')
-rw-r--r-- | modules/public/static.go | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/modules/public/static.go b/modules/public/static.go index 32ba0fe258..2e35329a07 100644 --- a/modules/public/static.go +++ b/modules/public/static.go @@ -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 } |