Merge pull request #1289 from nabinhait/develop
[fix] Hour format in format_datetime function
This commit is contained in:
commit
1f3cd8759d
1 changed files with 1 additions and 1 deletions
|
|
@ -209,7 +209,7 @@ def format_datetime(datetime_string, format_string=None):
|
|||
|
||||
datetime = get_datetime(datetime_string)
|
||||
if not format_string:
|
||||
format_string = get_user_format().replace("mm", "MM") + " hh:mm:ss"
|
||||
format_string = get_user_format().replace("mm", "MM") + " HH:mm:ss"
|
||||
|
||||
return babel.dates.format_datetime(datetime, format_string, locale=(frappe.local.lang or "").replace("-", "_"))
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue