Skip to content

armgit / sure

Public Imported from GitHub
0

The personal finance app for everyone (by everyone)

Ruby

fix: Parse transfer date parameter (#1110)

sentry[bot]97195d9f13b0
diff --git a/app/controllers/transfers_controller.rb b/app/controllers/transfers_controller.rb
index 248f8d4ad4..9579cadd08 100644
--- a/app/controllers/transfers_controller.rb
+++ b/app/controllers/transfers_controller.rb
@@ -17,7 +17,7 @@ class TransfersController < ApplicationController
family: Current.family,
source_account_id: transfer_params[:from_account_id],
destination_account_id: transfer_params[:to_account_id],
- date: transfer_params[:date],
+ date: Date.parse(transfer_params[:date]),
amount: transfer_params[:amount].to_d
).create