mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-15 19:19:17 +00:00
Merge pull request #43930 from lbrandh/fix_timestrings
fix: use get_datetime_as_string with correct time format
This commit is contained in:
@@ -356,7 +356,7 @@ var calculate_end_time = function (frm, cdt, cdn) {
|
||||
if (child.hours) {
|
||||
d.add(child.hours, "hours");
|
||||
frm._setting_hours = true;
|
||||
frappe.model.set_value(cdt, cdn, "to_time", d.format(frappe.defaultDatetimeFormat)).then(() => {
|
||||
frappe.model.set_value(cdt, cdn, "to_time", frappe.datetime.get_datetime_as_string(d)).then(() => {
|
||||
frm._setting_hours = false;
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user