Skip to content

Commit

Permalink
Merge pull request consuldemocracy#68 from participemais/fix-budget-e…
Browse files Browse the repository at this point in the history
…nd-date-email

Subtrai um dia da data final do processo de votação
  • Loading branch information
thiswd committed Jul 22, 2020
2 parents 7875140 + 778fab3 commit a6f1f5d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/models/budget.rb
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,8 @@ def investments_milestone_tags

def balloting_ends_at_for_mail
return unless balloting?
I18n.l(current_phase.ends_at.to_date, format: :short_day_and_month)
date = (current_phase.ends_at - 1.day).to_date
I18n.l(date, format: :short_day_and_month)
end

private
Expand Down

0 comments on commit a6f1f5d

Please sign in to comment.