aboutsummaryrefslogtreecommitdiffhomepage
path: root/hugofs
diff options
context:
space:
mode:
authorsatotake <[email protected]>2022-04-27 02:57:04 +0900
committerBjørn Erik Pedersen <[email protected]>2022-05-08 16:56:26 +0200
commite77ca3c105bd64c5077d823d2127f6f812a4f681 (patch)
treeebbe9c310bfab1e34f9fd2e36b738fd2a37d6f11 /hugofs
parentf2946da9e806c2bafbdd26707fe339db79bd980b (diff)
downloadhugo-e77ca3c105bd64c5077d823d2127f6f812a4f681.tar.gz
hugo-e77ca3c105bd64c5077d823d2127f6f812a4f681.zip
Add `clock` cli flag
Close #8787
Diffstat (limited to 'hugofs')
-rw-r--r--hugofs/fileinfo.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/hugofs/fileinfo.go b/hugofs/fileinfo.go
index af37fce7e..d923d632d 100644
--- a/hugofs/fileinfo.go
+++ b/hugofs/fileinfo.go
@@ -31,6 +31,7 @@ import (
"errors"
"github.com/gohugoio/hugo/common/hreflect"
+ "github.com/gohugoio/hugo/common/htime"
"github.com/spf13/afero"
)
@@ -203,7 +204,7 @@ func newDirNameOnlyFileInfo(name string, meta *FileMeta, fileOpener func() (afer
m.IsOrdered = false
return NewFileMetaInfo(
- &dirNameOnlyFileInfo{name: base, modTime: time.Now()},
+ &dirNameOnlyFileInfo{name: base, modTime: htime.Now()},
m,
)
}