From 65a9894bbaa6c79a32315e22831120de8ff6d833 Mon Sep 17 00:00:00 2001 From: Todd Trimble Date: Sun, 11 Oct 2020 19:35:31 -0400 Subject: [PATCH] Explain time/tzdata import with comment --- main.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/main.go b/main.go index 80e96ec9..40c65452 100644 --- a/main.go +++ b/main.go @@ -10,6 +10,10 @@ import ( "log" "os" + // Blank import of tzdata embeds the timezone database to allow Windows hosts to find timezone + // information even if the timezone database is not available on the local system. See release + // notes at https://golang.org/doc/go1.15#time/tzdata for details. This prevents "no timezone + // data available" errors in clocks module. _ "time/tzdata" "github.com/logrusorgru/aurora"