Import time/tzdata on Windows
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Sat, 14 Aug 2021 10:09:41 +0000 (12:09 +0200)
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Sat, 14 Aug 2021 10:09:41 +0000 (12:09 +0200)
Updates #8892

commands/hugo_windows.go

index 106c0cc71aad49cc8f56ffc46b2116365ce85faf..1724f12cd983d6e53db2ee9783060546800e2023 100644 (file)
 
 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