1--TEST-- 2Bug #81565 (date parsing fails when provided with timezones including seconds) 3--FILE-- 4<?php 5var_export( 6 \DateTime::createFromFormat( 7 'Y-m-d H:i:sO', 8 '0021-08-21 00:00:00+00:49:56' 9 ) 10); 11 12echo "\n", (new DatetimeZone('+01:45:30'))->getName(); 13?> 14--EXPECT-- 15\DateTime::__set_state(array( 16 'date' => '0021-08-21 00:00:00.000000', 17 'timezone_type' => 1, 18 'timezone' => '+00:49', 19)) 20+01:45:30 21