diff --git a/src/definitions/modules/calendar.js b/src/definitions/modules/calendar.js index 8e975496a6..1757f329c5 100644 --- a/src/definitions/modules/calendar.js +++ b/src/definitions/modules/calendar.js @@ -1468,7 +1468,7 @@ $.fn.calendar.settings = { return null; } if(text.match(/^[0-9]{4}[\/\-\.][0-9]{2}[\/\-\.][0-9]{2}$/)){ - text += ' 00:00:00'; + text = text.replace(/[\/\-\.]/g,'/') + ' 00:00:00'; } // Reverse date and month in some cases text = settings.monthFirst || !text.match(/^[0-9]{2}[\/\-\.]/) ? text : text.replace(/[\/\-\.]/g,'/').replace(/([0-9]+)\/([0-9]+)/,'$2/$1');