From 07f74730ac44d77b81fba39dfb10624764f11029 Mon Sep 17 00:00:00 2001 From: Lars Date: Thu, 16 Jan 2025 11:34:52 +0100 Subject: [PATCH] fix: include tzdata to validate timezones in scim (#9195) # Which Problems Are Solved - include tzdata in the binary to correctly validate time zones in the scim layer if the os doesn't have timezone data available. # How the Problems Are Solved - by importing the go pkg `"time/tzdata"` # Additional Context Part of https://github.com/zitadel/zitadel/issues/8140 --- internal/api/scim/resources/user_metadata.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/internal/api/scim/resources/user_metadata.go b/internal/api/scim/resources/user_metadata.go index 1bb00ff8a..d08594c3c 100644 --- a/internal/api/scim/resources/user_metadata.go +++ b/internal/api/scim/resources/user_metadata.go @@ -4,6 +4,9 @@ import ( "context" "encoding/json" "time" + // import timezone database to ensure it is available at runtime + // data is required to validate time zones. + _ "time/tzdata" "github.com/zitadel/logging" "golang.org/x/text/language"