Fix date picker datetime parsing when using pre-defined localized versions of am/pm

Add list of allowed am and pm names to override locale am/pm because PHP DateTime cannot interpret them.
This commit is contained in:
Slade
2019-11-16 18:19:38 -07:00
committed by Frédéric Guillot
parent cac62d24b4
commit a089a77ce9
2 changed files with 4 additions and 2 deletions

View File

@@ -65,7 +65,9 @@ Kanboard.App.prototype.datePicker = function() {
$(".form-datetime").datetimepicker({
dateFormat: dateFormat,
timeFormat: timeFormat,
constrainInput: false
constrainInput: false,
amNames: ['am', 'AM'],
pmNames: ['pm', 'PM']
});
};