mirror of
https://github.com/php/php-src.git
synced 2026-04-18 21:41:22 +02:00
15 lines
282 B
PHP
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"
|
|
}
|