php-src/ext/date/tests/bug43527.phpt
Derick Rethans 64c498bddd - Added support for abbreviation and offset based timezone specifiers for
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).
2008-01-17 18:48:44 +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