1
0
mirror of https://github.com/taigrr/wtf synced 2025-01-18 04:03:14 -08:00

Explain time/tzdata import with comment

This commit is contained in:
Todd Trimble 2020-10-11 19:35:31 -04:00
parent 98f3e33f8d
commit 65a9894bba

View File

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