mirror of
https://github.com/docusealco/docuseal
synced 2026-11-06 06:52:33 -05:00
fix date normalization
This commit is contained in:
1 parent
11bdc522cd
commit
0cdb7c2c4f
1 file changed
+1
-1
@@ -54,7 +54,7 @@ module Submitters
|
||||
value.to_s
|
||||
elsif field['type'] == 'number' && value.present?
|
||||
(value.to_f % 1).zero? ? value.to_i : value.to_f
|
||||
elsif field['type'] == 'date' && value.present?
|
||||
elsif field['type'] == 'date' && value.present? && value != '{{date}}'
|
||||
if value.is_a?(Integer)
|
||||
Time.zone.at(value.to_s.first(10).to_i).to_date
|
||||
else
|
||||
|
||||
Reference in new issue
Block a user