ru_php/ext/date/tests/bug81097.phpt

15 lines
285 B
PHP

--TEST--
Bug #81097 (DateTimeZone silently falls back to UTC when providing an offset with seconds)
--FILE--
<?php
$d = new DatetimeZone('+01:45:30');
var_dump($d);
?>
--EXPECTF--
object(DateTimeZone)#%d (%d) {
["timezone_type"]=>
int(1)
["timezone"]=>
string(9) "+01:45:30"
}