bug26317.phpt 513 B

1234567891011121314151617181920
  1. --TEST--
  2. Bug #26317 (military timezone offset signedness)
  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-19 16:20:42 Z"));
  14. echo date("Y-m-d H:i:s\n", strtotime("2003-11-19 09:20:42 T"));
  15. echo date("Y-m-d H:i:s\n", strtotime("2003-11-19 19:20:42 C"));
  16. ?>
  17. --EXPECT--
  18. 2003-11-19 16:20:42
  19. 2003-11-19 16:20:42
  20. 2003-11-19 16:20:42