Import time/tzdata on Windows - hugo - [fork] hugo port for 9front
HTML git clone git@git.drkhsh.at/hugo.git
DIR Log
DIR Files
DIR Refs
DIR Submodules
DIR README
DIR LICENSE
---
DIR commit 58b6742cfeb6d4cd04450cbe9592209510c2b977
DIR parent 32ead4b1e73c3388a90dc5ef5661cdb264227d29
HTML Author: Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Date: Sat, 14 Aug 2021 12:09:41 +0200
Import time/tzdata on Windows
Updates #8892
Diffstat:
M commands/hugo_windows.go | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
---
DIR diff --git 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