Annotation of embedaddon/php/ext/date/tests/bug34676.phpt, revision 1.1
1.1 ! misho 1: --TEST--
! 2: Bug #34676 (missing support for strtotime("midnight") and strtotime("noon"))
! 3: --FILE--
! 4: <?php
! 5: date_default_timezone_set("UTC");
! 6:
! 7: $tests = array(
! 8: 'noon', 'midnight'
! 9: );
! 10:
! 11: foreach ($tests as $test) {
! 12: $t = strtotime("2005-12-22 ". $test);
! 13: printf("%-10s => %s\n", $test, date(DATE_ISO8601, $t));
! 14: }
! 15:
! 16: ?>
! 17: --EXPECT--
! 18: noon => 2005-12-22T12:00:00+0000
! 19: midnight => 2005-12-22T00:00:00+0000
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>