diff --git a/hrms/hr/doctype/attendance/attendance_list.js b/hrms/hr/doctype/attendance/attendance_list.js index df6fc673eb..b9f4adfc03 100644 --- a/hrms/hr/doctype/attendance/attendance_list.js +++ b/hrms/hr/doctype/attendance/attendance_list.js @@ -46,7 +46,7 @@ frappe.listview_settings["Attendance"] = { fieldtype: "Date", fieldname: "from_date", reqd: 1, - default: first_day_of_month.toDate(), + default: frappe.datetime.obj_to_str(first_day_of_month), onchange: () => me.get_unmarked_days(dialog), }, { @@ -65,7 +65,7 @@ frappe.listview_settings["Attendance"] = { fieldtype: "Date", fieldname: "to_date", reqd: 1, - default: moment().toDate(), + default: frappe.datetime.obj_to_str(moment()), onchange: () => me.get_unmarked_days(dialog), }, {