php-src/ext/date/tests/bug43527.phpt
Derick Rethans e549873c10 - MFH: Added support for abbreviation and offset based timezone specifiers for
DateTime::getOffset() and DateTime::getName().
- MFH: Fixed bug #43527 (DateTime created from a timestamp reports environment
  timezone).
- MFH: Fixed bug #42190 (Constructing DateTime with TimeZone Indicator
  invalidates DateTimeZone).
2008-01-17 18:49:45 +00:00

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