From 8aefcd179f3a5b957bb75e35fbfb2af46ca53cb4 Mon Sep 17 00:00:00 2001 From: David Reiss Date: Thu, 18 Jan 2024 15:58:14 -0800 Subject: [PATCH] Embed fallback tzdata (#415) ## What was changed Embed time zone database in case platform database can't be found. ## Why? This ensures time zones are always available, even on Windows which does not supply a time zone database (at least in a format that Go understands). --- cmd/temporal/main.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cmd/temporal/main.go b/cmd/temporal/main.go index 17358ae4..10078084 100644 --- a/cmd/temporal/main.go +++ b/cmd/temporal/main.go @@ -7,6 +7,9 @@ import ( // Load sqlite storage driver _ "go.temporal.io/server/common/persistence/sql/sqlplugin/sqlite" + // Embed time zone database as a fallback if platform database can't be found + _ "time/tzdata" + "github.com/temporalio/cli/app" )