[minor] fixes to moment.defaultDateFormat and daily work summary eplies

This commit is contained in:
Rushabh Mehta
2018-06-25 22:37:43 +05:30
parent 5c13cb3221
commit 096b943b0c
4 changed files with 16 additions and 8 deletions

View File

@@ -79,7 +79,7 @@ erpnext.timesheet.control_timer = function(frm, dialog, row, timestamp=0) {
let d = moment(row.from_time);
if(row.expected_hours) {
d.add(row.expected_hours, "hours");
row.to_time = d.format(moment.defaultDatetimeFormat);
row.to_time = d.format(frappe.defaultDatetimeFormat);
}
frm.refresh_field("time_logs");
frm.save();