diff --git a/lib/accounts.rb b/lib/accounts.rb index 02934197..935f31a1 100644 --- a/lib/accounts.rb +++ b/lib/accounts.rb @@ -68,5 +68,7 @@ module Accounts tzinfo = TZInfo::Timezone.get(ActiveSupport::TimeZone::MAPPING[timezone] || timezone) ::ActiveSupport::TimeZone.all.find { |e| e.tzinfo == tzinfo }&.name || timezone + rescue TZInfo::InvalidTimezoneIdentifier + 'UTC' end end