diff --git a/CRM/Utils/Date.php b/CRM/Utils/Date.php
index ddbc21e652578ad9d8bde19ea617547945a6646f..98e723f60f10725e27497c1ea1732920bc871cc6 100644
--- a/CRM/Utils/Date.php
+++ b/CRM/Utils/Date.php
@@ -2125,7 +2125,7 @@ class CRM_Utils_Date {
       $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);