From 0a3f182e706e6fb5954270ee22342197f368a39f Mon Sep 17 00:00:00 2001 From: Pete Matsyburka Date: Thu, 29 Oct 2026 10:51:45 +0200 Subject: [PATCH] fix timezone --- lib/accounts.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/accounts.rb b/lib/accounts.rb index 5ac13f0c0..0bbea42e4 100644 --- a/lib/accounts.rb +++ b/lib/accounts.rb @@ -160,7 +160,7 @@ module Accounts def normalize_timezone(timezone) tzinfo = TZInfo::Timezone.get(ActiveSupport::TimeZone::MAPPING[timezone] || timezone) - ::ActiveSupport::TimeZone.all.find { |e| e.tzinfo == tzinfo }&.name || timezone + ::ActiveSupport::TimeZone.all.find { |e| e.tzinfo.canonical_zone == tzinfo.canonical_zone }&.name || timezone rescue TZInfo::InvalidTimezoneIdentifier 'UTC' end