Annotation of embedaddon/php/ext/date/tests/bug35456.phpt, revision 1.1
1.1 ! misho 1: --TEST--
! 2: Bug #35456 (+ 1 [time unit] format did not work)
! 3: --FILE--
! 4: <?php
! 5: date_default_timezone_set("UTC");
! 6:
! 7: $t = 1133216119;
! 8:
! 9: echo date(DATE_ISO8601, strtotime("+ 1 day", $t)) . "\n";
! 10: echo date(DATE_ISO8601, strtotime("+ 1 month", $t)) . "\n";
! 11: echo date(DATE_ISO8601, strtotime("+ 1 week", $t)) . "\n";
! 12: ?>
! 13: --EXPECT--
! 14: 2005-11-29T22:15:19+0000
! 15: 2005-12-28T22:15:19+0000
! 16: 2005-12-05T22:15:19+0000
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>