Avoid using Date.today, better to use Date.current that takes timezone into account

This commit is contained in:
Bertocq
2017-06-11 10:40:12 +02:00
parent 79dfdb88b4
commit e14a5b2eaf
4 changed files with 6 additions and 6 deletions

View File

@@ -1,7 +1,7 @@
class MigrateSpendingProposalsToInvestments
def import(sp)
budget = Budget.last || Budget.create!(name: Date.today.year.to_s, currency_symbol: "")
budget = Budget.last || Budget.create!(name: Date.current.year.to_s, currency_symbol: "")
group = nil
heading = nil