Skip to content

Commit

Permalink
changed formatted date in AnswerHelper to use :govuk_zero_pad (from d…
Browse files Browse the repository at this point in the history
…ate_formats initializer)
  • Loading branch information
sarahcrack committed Nov 26, 2024
1 parent 6e4d970 commit c7074af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/helpers/answer_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ module AnswerHelper
def format_answer(answer)
case answer
when Date
answer = answer.to_formatted_s(:govuk_date)
answer = answer.to_formatted_s(:govuk_zero_pad)
when Time
answer = answer.in_time_zone.to_formatted_s(:govuk_time)
end
Expand Down

0 comments on commit c7074af

Please sign in to comment.