mirror of
https://github.com/php/php-src.git
synced 2026-04-19 22:11:12 +02:00
15 lines
381 B
PHP
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
|