mirror of
https://github.com/php/php-src.git
synced 2024-10-17 06:22:53 +00:00
64c498bddd
DateTime::getOffset() and DateTime::getName(). - Fixed bug #43527 (DateTime created from a timestamp reports environment timezone). - Fixed bug #42190 (Constructing DateTime with TimeZone Indicator invalidates DateTimeZone).
11 lines
270 B
PHP
11 lines
270 B
PHP
--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
|