bug26090.phpt 354 B

123456789101112131415
  1. --TEST--
  2. Bug #26090 (allow colons in time zone offset to strtotime())
  3. --INI--
  4. date.timezone=America/New_York
  5. --FILE--
  6. <?php
  7. $t = '2003-10-28 10:20:30-0800';
  8. echo date('Y-m-d H:i:s T', strtotime($t)) . "\n";
  9. $t = '2003-10-28 10:20:30-08:00';
  10. echo date('Y-m-d H:i:s T', strtotime($t)) . "\n";
  11. ?>
  12. --EXPECT--
  13. 2003-10-28 13:20:30 EST
  14. 2003-10-28 13:20:30 EST