Bug #14568: strtotime giving wrong result
| From: | marc_bigler at yahoo dot com | Date: | Mon, 17 Dec 2001 21:29:44 +0000 |
| Subject: | Bug #14568: strtotime giving wrong result | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-74191@lists.php.net to get a copy of this message | ||
From: marc_bigler@yahoo.com
Operating system: Solaris 8
PHP version: 4.1.0
PHP Bug Type: Date/time related
Bug description: strtotime giving wrong result
I have just migrated from PHP 4.0.6 to PHP 4.1.0 and I have remarked that
the strtotime() is now giving me false results. Look at the following
code:
$date_string = "Sat, 15 Dec 2001 01:24:42 +0100 (CET)";
$date_ts = strtotime($date_string);
echo $date_ts;
With PHP 4.0.6 I get the following output (which is correct):
1008375882
And with the new PHP 4.1.0 I get the following output:
1008019482
Which is approxmiately 4-5 days wrong.
If you need more info feel free to contact me... Thanks for fixing this.
Regards
--
Edit bug report at: http://bugs.php.net/?id=14568&edit=1