This addresses an issue where the following date time has the time component
stripped
2012-12-12 07:12:56
Without the seconds - ie
2012-12-12 07:12
Note that I do have a test in a PR for the import where
$ruleName = 'date';
if ($dateType == 1) {
$matches = [];
- if (preg_match("/(\s(([01]\d)|[2][0-3]):([0-5]\d))$/", $date, $matches)) {
+ if (preg_match("/(\s(([01]\d)|[2][0-3]):([0-5]\d):?[0-5]?\d?)$/", $date, $matches)) {
$ruleName = 'dateTime';
if (strpos($date, '-') !== FALSE) {
$dateVal .= array_shift($matches);