1
0
mirror of https://github.com/php/php-src.git synced 2026-04-18 21:41:22 +02:00
Files
archived-php-src/ext/date/tests/bug81097.phpt
2022-05-20 13:18:26 +01:00

15 lines
282 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(6) "+01:45"
}