From 26ae12c0c64b847d24bde60d7d710ea2efcb40d4 Mon Sep 17 00:00:00 2001 From: Anthony Fok Date: Fri, 28 May 2021 21:35:48 -0600 Subject: Fix invalid timestamp of the "public" folder Special thanks to both Richard Mortimer (@oldelvet) and Joshua M. Clulow (@jclulow) for their analysis and suggested fix: * https://github.com/gohugoio/hugo/issues/6161#issuecomment-574336088 * https://github.com/gohugoio/hugo/issues/6161#issuecomment-596805273 Fixes #6161 --- hugofs/fileinfo.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'hugofs') diff --git a/hugofs/fileinfo.go b/hugofs/fileinfo.go index d68321282..17fb62ea2 100644 --- a/hugofs/fileinfo.go +++ b/hugofs/fileinfo.go @@ -280,7 +280,7 @@ func (fi *dirNameOnlyFileInfo) Mode() os.FileMode { } func (fi *dirNameOnlyFileInfo) ModTime() time.Time { - return time.Time{} + return time.Now() } func (fi *dirNameOnlyFileInfo) IsDir() bool { -- cgit v1.2.3