aboutsummaryrefslogtreecommitdiffhomepage
path: root/hugofs
diff options
context:
space:
mode:
authorAnthony Fok <[email protected]>2021-05-28 21:35:48 -0600
committerAnthony Fok <[email protected]>2021-06-04 14:50:30 -0600
commit26ae12c0c64b847d24bde60d7d710ea2efcb40d4 (patch)
treeff5c4cd9eeb2c79e988c385c389c834b94b6a5df /hugofs
parentee733085b7f5d3f2aef1667901ab6ecb8041d699 (diff)
downloadhugo-26ae12c0c64b847d24bde60d7d710ea2efcb40d4.tar.gz
hugo-26ae12c0c64b847d24bde60d7d710ea2efcb40d4.zip
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
Diffstat (limited to 'hugofs')
-rw-r--r--hugofs/fileinfo.go2
1 files changed, 1 insertions, 1 deletions
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 {