1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 08:12:21 +01:00
Files
archived-php-src/ext/date/tests/bug81097.phpt
Niels Dossche f9117eb824 Fix GH-11281: DateTimeZone::getName() does not include seconds in offset
If the seconds portion is non-zero, include the seconds in the output.

Closes GH-11282.
2023-05-23 18:52:07 +02:00

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"
}