Skip to content

Commit

Permalink
Updated transaction form trx_date default value to show current local…
Browse files Browse the repository at this point in the history
… date
  • Loading branch information
odinsride committed Aug 19, 2018
1 parent a645079 commit 7677fe4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/views/transactions/_form.html.erb
Expand Up @@ -20,7 +20,7 @@
<!-- Transaction Date -->
<div class="input-field col l4 s7">
<i class="material-icons prefix ob-text-primary">date_range</i>
<%= f.text_field :trx_date, class:"datepicker", value: (@transaction.trx_date.present?) ? @transaction.trx_date.strftime('%d %B, %Y') : Time.now.strftime('%d %B, %Y') %>
<%= f.text_field :trx_date, class:"datepicker", value: (@transaction.trx_date.present?) ? @transaction.trx_date.strftime('%d %B, %Y') : Time.current.strftime('%d %B, %Y') %>
<%= f.label :trx_date, :label => 'Transaction Date' %>
</div>

Expand Down

0 comments on commit 7677fe4

Please sign in to comment.