mirror of
https://github.com/docusealco/docuseal
synced 2026-11-04 14:42:32 -05:00
adjust templates, add timezone and locale
This commit is contained in:
1 parent
d0c7d449d5
commit
c904d51302
47 files changed
+331
-171
No files matched your search
@@ -0,0 +1,11 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
module Accounts
|
||||
module_function
|
||||
|
||||
def normalize_timezone(timezone)
|
||||
tzinfo = TZInfo::Timezone.get(ActiveSupport::TimeZone::MAPPING[timezone] || timezone)
|
||||
|
||||
::ActiveSupport::TimeZone.all.find { |e| e.tzinfo == tzinfo }&.name || timezone
|
||||
end
|
||||
end
|
||||
Reference in new issue
Block a user