svn: /php/php-src/ branches/PHP_5_3/ext/date/tests/DateTime_construct-dst-overlap.phpt
branches/PHP_5_4/ext/date/tests/DateTime_construct-dst-overlap.phpt trunk/ext/date/tests/DateTime_construct-dst-overlap.phpt
| From: | Daniel Convissor | Date: | Wed, 13 Jul 2011 16:21:10 +0000 |
| Subject: | svn: /php/php-src/ branches/PHP_5_3/ext/date/tests/DateTime_construct-dst-overlap.phpt branches/PHP_5_4/ext/date/tests/DateTime_construct-dst-overlap.phpt trunk/ext/date/tests/DateTime_construct-dst-overlap.phpt |
||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-65479@lists.php.net to get a copy of this message | ||
danielc Wed, 13 Jul 2011 16:21:10 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=313209
Log:
Add test for constructing times during the dst/st conversion.
Changed paths:
A php/php-src/branches/PHP_5_3/ext/date/tests/DateTime_construct-dst-overlap.phpt
A php/php-src/branches/PHP_5_4/ext/date/tests/DateTime_construct-dst-overlap.phpt
A php/php-src/trunk/ext/date/tests/DateTime_construct-dst-overlap.phpt
Added: php/php-src/branches/PHP_5_3/ext/date/tests/DateTime_construct-dst-overlap.phpt
===================================================================
--- php/php-src/branches/PHP_5_3/ext/date/tests/DateTime_construct-dst-overlap.phpt
(rev 0)
+++ php/php-src/branches/PHP_5_3/ext/date/tests/DateTime_construct-dst-overlap.phpt 2011-07-13
16:21:10 UTC (rev 313209)
@@ -0,0 +1,15 @@
+--TEST--
+DateTime::__construct() -- fall daylight/standard overlap
+--CREDITS--
+Daniel Convissor <danielc@php.net>
+--FILE--
+<?php
+
+date_default_timezone_set('America/New_York');
+// PHP defaults to Daylight Saving Time. Ensure consistency in future.
+$d = new DateTime('2011-11-06 01:30:00');
+echo $d->format('P') . "\n";
+
+?>
+--EXPECT--
+-04:00
Added: php/php-src/branches/PHP_5_4/ext/date/tests/DateTime_construct-dst-overlap.phpt
===================================================================
--- php/php-src/branches/PHP_5_4/ext/date/tests/DateTime_construct-dst-overlap.phpt
(rev 0)
+++ php/php-src/branches/PHP_5_4/ext/date/tests/DateTime_construct-dst-overlap.phpt 2011-07-13
16:21:10 UTC (rev 313209)
@@ -0,0 +1,15 @@
+--TEST--
+DateTime::__construct() -- fall daylight/standard overlap
+--CREDITS--
+Daniel Convissor <danielc@php.net>
+--FILE--
+<?php
+
+date_default_timezone_set('America/New_York');
+// PHP defaults to Daylight Saving Time. Ensure consistency in future.
+$d = new DateTime('2011-11-06 01:30:00');
+echo $d->format('P') . "\n";
+
+?>
+--EXPECT--
+-04:00
Added: php/php-src/trunk/ext/date/tests/DateTime_construct-dst-overlap.phpt
===================================================================
--- php/php-src/trunk/ext/date/tests/DateTime_construct-dst-overlap.phpt
(rev 0)
+++ php/php-src/trunk/ext/date/tests/DateTime_construct-dst-overlap.phpt 2011-07-13 16:21:10 UTC
(rev 313209)
@@ -0,0 +1,15 @@
+--TEST--
+DateTime::__construct() -- fall daylight/standard overlap
+--CREDITS--
+Daniel Convissor <danielc@php.net>
+--FILE--
+<?php
+
+date_default_timezone_set('America/New_York');
+// PHP defaults to Daylight Saving Time. Ensure consistency in future.
+$d = new DateTime('2011-11-06 01:30:00');
+echo $d->format('P') . "\n";
+
+?>
+--EXPECT--
+-04:00