mirror of
https://github.com/php/php-src.git
synced 2026-03-24 08:12:21 +01:00
15 lines
285 B
PHP
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"
|
|
}
|