Bug #14568 Updated: strtotime giving wrong result

From: Date: Mon, 17 Dec 2001 21:39:09 +0000
Subject: Bug #14568 Updated: strtotime giving wrong result
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-74193@lists.php.net to get a copy of this message
ID: 14568 Updated by: derick Reported By: marc_bigler@yahoo.com Old Status: Open Status: Closed Bug Type: Date/time related Operating System: Solaris 8 PHP Version: 4.1.0 New Comment: Already fixed, and will be in the next release. Derick Previous Comments: ------------------------------------------------------------------------ [2001-12-17 16:29:44] marc_bigler@yahoo.com 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 this bug report at http://bugs.php.net/?id=14568&edit=1

« previous php.dev (#74193) next »