Bug #15123: strtotime doesn't work with long date format

From: Date: Sun, 20 Jan 2002 11:42:48 +0000
Subject: Bug #15123: strtotime doesn't work with long date format
Groups: php.dev 
Request: Send a blank email to php-dev+get-77581@lists.php.net to get a copy of this message
From: htheking@gmx.de Operating system: Linux 2.4.16 PHP version: 4.1.1 PHP Bug Type: Date/time related Bug description: strtotime doesn't work with long date format 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 bug report at: http://bugs.php.net/?id=15123&edit=1

« previous php.dev (#77581) next »