From 55ad42cfd05df96c2c9249bb2d30a547e04d6603 Mon Sep 17 00:00:00 2001 From: partzsch Date: Mon, 21 Dec 2015 17:51:42 +0100 Subject: [PATCH] Time Log now down to seconds according to request of @anadpdoshi new branch new commit new PR --- erpnext/projects/doctype/time_log/time_log.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/erpnext/projects/doctype/time_log/time_log.js b/erpnext/projects/doctype/time_log/time_log.js index 7b2faf9d2b..3a01ca5de0 100644 --- a/erpnext/projects/doctype/time_log/time_log.js +++ b/erpnext/projects/doctype/time_log/time_log.js @@ -46,7 +46,7 @@ frappe.ui.form.on("Time Log", "before_save", function(frm) { frappe.ui.form.on("Time Log", "to_time", function(frm) { if(frm._setting_hours) return; frm.set_value("hours", moment(cur_frm.doc.to_time).diff(moment(cur_frm.doc.from_time), - "minutes") / 60); + "seconds") / 3600); });