Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/gohugoio/hugo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2021-08-14 13:09:41 +0300
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2021-08-14 13:09:41 +0300
commit58b6742cfeb6d4cd04450cbe9592209510c2b977 (patch)
tree3b0d4dce1d2a1d3947fe51162aacd8705c2ed9c4 /commands
parent32ead4b1e73c3388a90dc5ef5661cdb264227d29 (diff)
Import time/tzdata on Windows
Updates #8892
Diffstat (limited to 'commands')
-rw-r--r--commands/hugo_windows.go8
1 files changed, 7 insertions, 1 deletions
diff --git a/commands/hugo_windows.go b/commands/hugo_windows.go
index 106c0cc71..1724f12cd 100644
--- a/commands/hugo_windows.go
+++ b/commands/hugo_windows.go
@@ -13,7 +13,13 @@
package commands
-import "github.com/spf13/cobra"
+import (
+ // For time zone lookups on Windows without Go installed.
+ // See #8892
+ _ "time/tzdata"
+
+ "github.com/spf13/cobra"
+)
func init() {
// This message to show to Windows users if Hugo is opened from explorer.exe