|
|
@@ -96,9 +96,15 @@ frappe.form.formatters = { |
|
|
|
return value || ""; |
|
|
|
}, |
|
|
|
Datetime: function(value) { |
|
|
|
return value ? moment(dateutil.convert_to_user_tz(value)) |
|
|
|
.tz(frappe.boot.sysdefaults.time_zone).format('MMMM Do YYYY, h:mm a z') : ""; |
|
|
|
//return value ? dateutil.str_to_user(dateutil.convert_to_user_tz(value)) : ""; |
|
|
|
if(value) { |
|
|
|
var m = moment(dateutil.convert_to_user_tz(value)); |
|
|
|
if(frappe.boot.sysdefaults.time_zone) { |
|
|
|
m = m.tz(frappe.boot.sysdefaults.time_zone); |
|
|
|
} |
|
|
|
return m.format('MMMM Do YYYY, h:mm a z'); |
|
|
|
} else { |
|
|
|
return ""; |
|
|
|
} |
|
|
|
}, |
|
|
|
Text: function(value) { |
|
|
|
if(value) { |
|
|
|