Skip to content

Commit

Permalink
Embed fallback tzdata (#415)
Browse files Browse the repository at this point in the history
## 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).
  • Loading branch information
dnr authored Jan 18, 2024
1 parent 64ab741 commit 8aefcd1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cmd/temporal/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)

Expand Down

0 comments on commit 8aefcd1

Please sign in to comment.