[PHP-DEV] Bug #15123 Updated: strtotime() returns -1 for M d H:i:s Y format same as #13142

2002-01-21 Thread htheking

ID: 15123
User updated by: [EMAIL PROTECTED]
Old Summary: strtotime doesn't work with long date format
Reported By: [EMAIL PROTECTED]
Status: Open
Bug Type: Date/time related
Operating System: Linux 2.4.16  2.2.16
PHP Version: 4.1.1


Previous Comments:


[2002-01-20 06:42:48] [EMAIL PROTECTED]

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=15123edit=1


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Bug #15123: strtotime doesn't work with long date format

2002-01-20 Thread htheking

From: [EMAIL PROTECTED]
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=15123edit=1


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Bug #15123 Updated: strtotime doesn't work with long date format

2002-01-20 Thread htheking

ID: 15123
User updated by: [EMAIL PROTECTED]
Old Summary: strtotime doesn't work with long date format
Reported By: [EMAIL PROTECTED]
Status: Open
Bug Type: Date/time related
Old Operating System: Linux 2.4.16
Operating System: Linux 2.4.16  2.2.16
PHP Version: 4.1.1


Edit this bug report at http://bugs.php.net/?id=15123edit=1


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Bug #15123 Updated: strtotime doesn't work with long date format with month before day

2002-01-20 Thread htheking

ID: 15123
User updated by: [EMAIL PROTECTED]
Old Summary: strtotime doesn't work with long date format
Reported By: [EMAIL PROTECTED]
Status: Open
Bug Type: Date/time related
Operating System: Linux 2.4.16  2.2.16
PHP Version: 4.1.1
New Comment:





Previous Comments:


[2002-01-20 06:42:48] [EMAIL PROTECTED]

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=15123edit=1


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]