mirror of
https://github.com/php/php-src.git
synced 2024-12-04 23:34:25 +08:00
15 lines
337 B
PHP
15 lines
337 B
PHP
--TEST--
|
|
Bug #35218 (strtotime no longer ignores timezone comments like "(PST)")
|
|
--FILE--
|
|
<?php
|
|
date_default_timezone_set("UTC");
|
|
$date = 'Sun, 13 Nov 2005 22:56:10 -0800 (PST)';
|
|
$date_fixed = 'Sun, 13 Nov 2005 22:56:10 -0800';
|
|
|
|
var_dump(strtotime($date));
|
|
var_dump(strtotime($date_fixed));
|
|
?>
|
|
--EXPECT--
|
|
int(1131951370)
|
|
int(1131951370)
|