I know there is a way to edit the location, to move it to the Brazilian format. But I do not know the syntax for changing the format in the form:
<div class="field">
<p> Garantia </p>
<%= f.date_select :guarantee %>
</div>
I know there is a way to edit the location, to move it to the Brazilian format. But I do not know the syntax for changing the format in the form:
<div class="field">
<p> Garantia </p>
<%= f.date_select :guarantee %>
</div>
Put in your config/application.rb
Time::DATE_FORMATS[:default] = "%d/%m/%Y %H:%M"
Date::DATE_FORMATS[:default] = "%d/%m/%Y"
That the formatting of all system dates go to the Brazilian standard.