mirror of
https://github.com/docusealco/docuseal
synced 2026-11-05 14:42:33 -05:00
link to submission preview page in completed emails
This commit is contained in:
1 parent
d130835902
commit
66d1ae2f64
12 files changed
+114
-34
No files matched your search
@@ -0,0 +1,13 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
module TimeUtils
|
||||
module_function
|
||||
|
||||
def timezone_abbr(timezone, time = Time.current)
|
||||
tz_info = TZInfo::Timezone.get(
|
||||
ActiveSupport::TimeZone::MAPPING[timezone] || timezone || 'UTC'
|
||||
)
|
||||
|
||||
tz_info.abbreviation(time)
|
||||
end
|
||||
end
|
||||
Reference in new issue
Block a user