mirror of
https://github.com/docusealco/docuseal
synced 2026-11-04 14:42:32 -05:00
rescue undefined timezone
This commit is contained in:
1 parent
ef8c3cfe7f
commit
f8712a9da9
1 file changed
+2
@@ -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
|
||||
Reference in new issue
Block a user