bug26320.phpt 435 B

123456789101112131415161718
  1. --TEST--
  2. Bug #26320 (strtotime handling of XML Schema/ISO 8601 format)
  3. --INI--
  4. date.timezone=GMT0
  5. --SKIPIF--
  6. <?php
  7. if (!@putenv("TZ=GMT0") || getenv("TZ") != 'GMT0') {
  8. die("skip unable to change TZ environment variable\n");
  9. }
  10. ?>
  11. --FILE--
  12. <?php
  13. echo date("Y-m-d H:i:s\n", strtotime("2003-11-19T12:30:42"));
  14. echo date("Y-m-d H:i:s\n", strtotime("2003-11-19T12:30:42Z"));
  15. ?>
  16. --EXPECT--
  17. 2003-11-19 12:30:42
  18. 2003-11-19 12:30:42