diff --git a/src/Controls/DateTimePicker.php b/src/Controls/DateTimePicker.php index 6af6014..d3a43eb 100644 --- a/src/Controls/DateTimePicker.php +++ b/src/Controls/DateTimePicker.php @@ -31,7 +31,7 @@ class DateTimePicker extends DateTimePickerPrototype protected function getDefaultParser() { return function($value) { - if (!preg_match('#^(?P
\d{1,2})[. -] *(?P\d{1,2})(?:[. -] *(?P\d{4})?)?(?: *[ -@] *(?P\d{1,2})[:.](?P\d{1,2})(?:[:.](?P\d{1,2}))?)?$#', $value, $matches)) { + if (!preg_match('#^(?P
\d{1,2})[. -] *(?P\d{1,2})(?:[. -] *(?P\d{4})?)?(?: *[ @-] *(?P\d{1,2})[:.](?P\d{1,2})(?:[:.](?P\d{1,2}))?)?$#', $value, $matches)) { return NULL; }