Annotation of embedaddon/php/ext/date/tests/bug52454.phpt, revision 1.1.1.1

1.1       misho       1: --TEST--
                      2: Bug #52454 (Relative dates and getTimestamp increments by one day)
                      3: --FILE--
                      4: <?php
                      5: date_default_timezone_set('Europe/London');
                      6: 
                      7: $endOfWeek = new DateTime('2010-07-27 09:46:49');
                      8: $endOfWeek->modify('this week +6 days');
                      9: 
                     10: echo $endOfWeek->format('Y-m-d H:i:s')."\n";
                     11: echo $endOfWeek->format('U')."\n";
                     12: 
                     13: /* Thar she blows! */
                     14: echo $endOfWeek->getTimestamp()."\n";
                     15: 
                     16: echo $endOfWeek->format('Y-m-d H:i:s')."\n";
                     17: ?>
                     18: --EXPECT--
                     19: 2010-08-01 09:46:49
                     20: 1280652409
                     21: 1280652409
                     22: 2010-08-01 09:46:49

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>