Skip to content

Commit

Permalink
use default date format in pdf result
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexBTurchyn committed Sep 14, 2023
1 parent ec4f399 commit 9d9e134
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/submissions/generate_result_attachments.rb
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ def call(submitter)
height - (area['y'] * height))
end
else
value = I18n.l(Date.parse(value), format: :long, locale: account.locale) if field['type'] == 'date'
value = I18n.l(Date.parse(value), format: :default, locale: account.locale) if field['type'] == 'date'

text = HexaPDF::Layout::TextFragment.create(Array.wrap(value).join(', '), font: pdf.fonts.add(FONT_NAME),
font_size:)
Expand Down

0 comments on commit 9d9e134

Please sign in to comment.