link to submission preview page in completed emails

This commit is contained in:
Pete Matsyburka committed 2023-11-20 01:00:00 +02:00
1 parent d130835902
commit 66d1ae2f64
12 files changed
+114 -34

No files matched your search

+13
View File
@@ -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