bug36599.phpt 306 B

123456789101112
  1. --TEST--
  2. Bug #36599 (DATE_W3C format constant incorrect).
  3. --FILE--
  4. <?php
  5. date_default_timezone_set("UTC");
  6. echo date( DATE_ATOM, strtotime( "2006-03-03 08:47:55" ) ), "\n";
  7. echo date( DATE_W3C, strtotime( "2006-03-03 08:47:55" ) ), "\n";
  8. ?>
  9. --EXPECT--
  10. 2006-03-03T08:47:55+00:00
  11. 2006-03-03T08:47:55+00:00