derick                                   Mon, 30 Aug 2010 16:47:46 +0000

Revision: http://svn.php.net/viewvc?view=revision&revision=302892

Log:
- Added test file that I forgot to commit.

Changed paths:
    A   php/php-src/branches/PHP_5_3/ext/date/tests/bug52454.phpt

Added: php/php-src/branches/PHP_5_3/ext/date/tests/bug52454.phpt
===================================================================
--- php/php-src/branches/PHP_5_3/ext/date/tests/bug52454.phpt                   
        (rev 0)
+++ php/php-src/branches/PHP_5_3/ext/date/tests/bug52454.phpt   2010-08-30 
16:47:46 UTC (rev 302892)
@@ -0,0 +1,22 @@
+--TEST--
+Bug #52454 (Relative dates and getTimestamp increments by one day)
+--FILE--
+<?php
+date_default_timezone_set('Europe/London');
+
+$endOfWeek = new DateTime('2010-07-27 09:46:49');
+$endOfWeek->modify('this week +6 days');
+
+echo $endOfWeek->format('Y-m-d H:i:s')."\n";
+echo $endOfWeek->format('U')."\n";
+
+/* Thar she blows! */
+echo $endOfWeek->getTimestamp()."\n";
+
+echo $endOfWeek->format('Y-m-d H:i:s')."\n";
+?>
+--EXPECT--
+2010-08-01 09:46:49
+1280652409
+1280652409
+2010-08-01 09:46:49

-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to