From d59819d9bb19c90bd1884e522073851f3a1d686f Mon Sep 17 00:00:00 2001 From: Nabin Hait Date: Wed, 5 Jul 2017 19:18:51 +0530 Subject: [PATCH] Date format issue fixed in setup wizard --- erpnext/public/js/setup_wizard.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/erpnext/public/js/setup_wizard.js b/erpnext/public/js/setup_wizard.js index 43b45d91bc..31bcfe750c 100644 --- a/erpnext/public/js/setup_wizard.js +++ b/erpnext/public/js/setup_wizard.js @@ -183,7 +183,7 @@ var erpnext_slides = [ slide.get_input("fy_start_date").on("change", function () { var start_date = slide.form.fields_dict.fy_start_date.get_value(); var year_end_date = - frappe.datetime.add_days(frappe.datetime.add_months(start_date, 12), -1); + frappe.datetime.add_days(frappe.datetime.add_months(frappe.datetime.user_to_obj(start_date), 12), -1); slide.form.fields_dict.fy_end_date.set_value(year_end_date); }); }