#15123 [Dup->Csd]: strtotime doesn't work with long date format

From: Date: Mon, 28 Jul 2003 09:55:40 +0000
Subject: #15123 [Dup->Csd]: strtotime doesn't work with long date format
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-44894@lists.php.net to get a copy of this message
ID: 15123 Updated by: sniper@php.net Reported By: htheking at gmx dot de -Status: Duplicate +Status: Closed Bug Type: Date/time related Operating System: Linux 2.4.16 & 2.2.16 PHP Version: 4.1.1 New Comment: fixed in CVS. Previous Comments: ------------------------------------------------------------------------ [2003-01-20 17:25:45] sniper@php.net Actually this is dup of: #13142 ------------------------------------------------------------------------ [2002-05-25 06:36:14] derick@php.net Dup of #16517 ------------------------------------------------------------------------ [2002-01-20 09:44:41] htheking at gmx dot de ------------------------------------------------------------------------ [2002-01-20 06:42:48] htheking at gmx dot de Perl 4.1.1 compiled as CGI configure line: "./configure" test OK. Everything works but this: (the date comes from a logfile) #! /usr/local/bin/php <?php $input = 'Sat Jan 19 00:01:00 2002'; $startdate = strtotime($input); echo ("startdate:\n$startdate \n"); ?> Output: X-Powered-By: PHP/4.1.1 Content-type: text/html startdate: -1 Other dates like 'Fri, Jan 18 00:01:00 2002' ->same problem ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=15123&edit=1

« previous php.bugs (#44894) next »