fix: empty import tzdata for Windows binaries (#10377)

The telegraf binary currently does not include any timezone data. While
this data is usually readily available in linux systems it is not
available to a go binary in Windows.

Fixes: #8756
This commit is contained in:
Joshua Powers 2022-01-05 08:18:12 -07:00 committed by GitHub
parent 003ba7d57c
commit 078242ba6b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -9,6 +9,8 @@ import (
"strings"
"time"
_ "time/tzdata" // needed to bundle timezone info into the binary for Windows
"github.com/influxdata/telegraf"
"github.com/influxdata/telegraf/internal"
"github.com/influxdata/telegraf/metric"