mirror of
https://github.com/php/php-src.git
synced 2024-10-21 00:12:34 +00:00
11 lines
270 B
Plaintext
11 lines
270 B
Plaintext
|
--TEST--
|
||
|
Bug #43527 (DateTime created from a timestamp reports environment timezone)
|
||
|
--FILE--
|
||
|
<?php
|
||
|
date_default_timezone_set("Etc/GMT+1");
|
||
|
$datetime = new DateTime('Fri, 07 Dec 2007 19:05:14 +1000');
|
||
|
echo $datetime->getTimezone()->getName(), "\n";
|
||
|
?>
|
||
|
--EXPECT--
|
||
|
+10:00
|