mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-20 21:31:32 +02:00
Use configured timeZone for the clock
And some other related adjustments. Updates #8787
This commit is contained in:
@@ -1585,7 +1585,7 @@ func TestShouldBuild(t *testing.T) {
|
||||
|
||||
func TestShouldBuildWithClock(t *testing.T) {
|
||||
htime.Clock = clock.Start(time.Date(2021, 11, 17, 20, 34, 58, 651387237, time.UTC))
|
||||
t.Cleanup(func() { htime.Clock = clock.Start(time.Now()) })
|
||||
t.Cleanup(func() { htime.Clock = clock.System() })
|
||||
past := time.Date(2009, 11, 17, 20, 34, 58, 651387237, time.UTC)
|
||||
future := time.Date(2037, 11, 17, 20, 34, 58, 651387237, time.UTC)
|
||||
zero := time.Time{}
|
||||
|
Reference in New Issue
Block a user