Avoid using Date.today, better to use Date.current that takes timezone into account
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user