mirror of
https://github.com/docusealco/docuseal
synced 2026-11-08 15:42:32 -05:00
add ability to set date field format
This commit is contained in:
1 parent
990e4020e9
commit
e558f4d9fb
9 files changed
+178
-6
No files matched your search
@@ -34,7 +34,7 @@
|
||||
<% elsif field['type'] == 'date' %>
|
||||
<autosize-field></autosize-field>
|
||||
<div class="flex items-center px-0.5">
|
||||
<%= l(Date.parse(value), format: :long, locale: local_assigns[:locale]) %>
|
||||
<%= TimeUtils.format_date_string(value, field.dig('preferences', 'format'), local_assigns[:locale]) %>
|
||||
</div>
|
||||
<% else %>
|
||||
<autosize-field></autosize-field>
|
||||
|
||||
Reference in new issue
Block a user