aboutsummaryrefslogtreecommitdiffhomepage
path: root/commands/hugo_windows.go
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <[email protected]>2021-08-14 12:09:41 +0200
committerBjørn Erik Pedersen <[email protected]>2021-08-14 12:09:41 +0200
commit58b6742cfeb6d4cd04450cbe9592209510c2b977 (patch)
tree3b0d4dce1d2a1d3947fe51162aacd8705c2ed9c4 /commands/hugo_windows.go
parent32ead4b1e73c3388a90dc5ef5661cdb264227d29 (diff)
downloadhugo-58b6742cfeb6d4cd04450cbe9592209510c2b977.tar.gz
hugo-58b6742cfeb6d4cd04450cbe9592209510c2b977.zip
Import time/tzdata on Windows
Updates #8892
Diffstat (limited to 'commands/hugo_windows.go')
-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