1
0
mirror of https://github.com/php/php-src.git synced 2026-04-19 22:11:12 +02:00
Files
archived-php-src/ext/date/tests/bug74173.phpt
2021-04-06 20:50:32 +01:00

15 lines
381 B
PHP

--TEST--
Bug #74173 (DateTimeImmutable::getTimestamp() triggers DST switch in incorrect time)
--FILE--
<?php
$utc = new \DateTimeImmutable('2016-10-30T00:00:00+00:0');
$prg = $utc->setTimeZone(new \DateTimeZone('Europe/Prague'));
echo $prg->format('c') . "\n";
$prg->getTimestamp();
echo $prg->format('c') . "\n";
?>
--EXPECT--
2016-10-30T02:00:00+02:00
2016-10-30T02:00:00+02:00