Merge pull request #15150 from ruchamahabal/fix-time-format
fix: Add fallback option for time format when system defaults are not set
This commit is contained in:
commit
fe7b0719cd
1 changed files with 1 additions and 1 deletions
|
|
@ -172,7 +172,7 @@ frappe.form.formatters = {
|
|||
m = m.tz(frappe.boot.sysdefaults.time_zone);
|
||||
}
|
||||
return m.format(frappe.boot.sysdefaults.date_format.toUpperCase()
|
||||
+ ' ' + frappe.boot.sysdefaults.time_format);
|
||||
+ ' ' + (frappe.boot.sysdefaults.time_format || 'HH:mm:ss'));
|
||||
} else {
|
||||
return "";
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue