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
1 changed files with 7 additions and 1 deletions

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