bug35218.phpt 337 B

1234567891011121314
  1. --TEST--
  2. Bug #35218 (strtotime no longer ignores timezone comments like "(PST)")
  3. --FILE--
  4. <?php
  5. date_default_timezone_set("UTC");
  6. $date = 'Sun, 13 Nov 2005 22:56:10 -0800 (PST)';
  7. $date_fixed = 'Sun, 13 Nov 2005 22:56:10 -0800';
  8. var_dump(strtotime($date));
  9. var_dump(strtotime($date_fixed));
  10. ?>
  11. --EXPECT--
  12. int(1131951370)
  13. int(1131951370)