mirror of
https://github.com/docusealco/docuseal
synced 2026-11-16 16:12:32 -05:00
add time formats
This commit is contained in:
1 parent
82500c2d7d
commit
c7afe33c72
18 files changed
+384
-144
No files matched your search
@@ -415,7 +415,8 @@ module Submissions
|
||||
composer.formatted_text_box([{ text: value.to_s.titleize }], padding: [0, 0, 10, 0])
|
||||
else
|
||||
if field['type'] == 'date'
|
||||
value = TimeUtils.format_date_string(value, field.dig('preferences', 'format'), account.locale)
|
||||
value = TimeUtils.format_date_string(value, field.dig('preferences', 'format'), account.locale,
|
||||
timezone:)
|
||||
end
|
||||
|
||||
value = NumberUtils.format_number(value, field.dig('preferences', 'format')) if field['type'] == 'number'
|
||||
|
||||
Reference in new issue
Block a user