Import time/tzdata on Windows

Updates #8892
This commit is contained in:
Bjørn Erik Pedersen 2021-08-14 12:09:41 +02:00
parent 32ead4b1e7
commit 58b6742cfe
No known key found for this signature in database
GPG key ID: 330E6E2BD4859D8F

View file

@ -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