diff --git a/src/Handlers/AbstractHandler.php b/src/Handlers/AbstractHandler.php index c765dbc8..0da80464 100644 --- a/src/Handlers/AbstractHandler.php +++ b/src/Handlers/AbstractHandler.php @@ -924,7 +924,7 @@ public static function parseStandardDate(string $date) $rules = [ // 2020-01-01T00:00:00.0Z - '/^(?\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2})\.(?\d+)(?Z)$/' => 'Y-m-d\TH:i:s.vT', + '/^(?\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2})\.(?\d+)(?Z)$/' => 'Y-m-d\TH:i:s.uT', // 2020-01-01T00:00:00Z '/^(?\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2})(?Z)$/' => 'Y-m-d\TH:i:sT', @@ -990,6 +990,8 @@ public static function parseStandardDate(string $date) foreach( $rules as $regex => $dateTimeFormat ){ $matches = []; + preg_match($regex, $date, $matches); + if( preg_match($regex, $date, $matches) ){ if( !empty($matches['microseconds']) && PHP_VERSION_ID <= 80200 ){