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:
@@ -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']
|
||||
});
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user