Skip to content

Commit 09ae7ed

Browse files
[Backport 7.67.x] [ksm] Import time/tzdata to allow support for legacy timezones in cronjobs (#37525)
Co-authored-by: jennchenn <32009013+jennchenn@users.noreply.github.com>
1 parent d1f450e commit 09ae7ed

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

pkg/collector/corechecks/cluster/ksm/kubernetes_state_transformers.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@ import (
1313
"strings"
1414
"time"
1515

16+
// time/tzdata embeds the timezone database to support legacy timezone names
17+
// (e.g. US/Central) used in upstream cronjob scheduling metric calculations
18+
_ "time/tzdata"
19+
1620
"github.com/samber/lo"
1721

1822
"github.com/DataDog/datadog-agent/pkg/aggregator/sender"

0 commit comments

Comments
 (0)