bug36224.phpt 311 B

12345678910111213
  1. --TEST--
  2. Bug #36224 (date(DATE_ATOM) gives wrong resulsts)
  3. --FILE--
  4. <?php
  5. date_default_timezone_set("Europe/Oslo");
  6. echo date(DATE_ATOM, strtotime('2006-01-31T19:23:56Z')) . "\n";
  7. echo date(DATE_ATOM, strtotime('2006-01-31T19:23:56')) . "\n";
  8. ?>
  9. --EXPECT--
  10. 2006-01-31T20:23:56+01:00
  11. 2006-01-31T19:23:56+01:00