ID: 12656
Updated by: alindeman
Reported By: [EMAIL PROTECTED]
Old Status: Open
Status: Closed
Bug Type: Date/time related
Operating System: Red Hat 7.1
PHP Version: 4.0.6
New Comment:

try...

print strtotime("Tue Aug 7 2001 18:48:28");

Previous Comments:
------------------------------------------------------------------------

[2001-08-08 12:48:54] [EMAIL PROTECTED]

Example code :
print strtotime("Tue Aug  7 18:48:28 2001");

This sample code format used to work properly in all PHP releases this year when we 
used Red Hat 6.2. It could give the proper timestamp.

But after upgrading to Red Hat 7.1, this code only gives "-1". I always use the same 
"configure" options when compiling. I run PHP as Apache module.

I have to take the first 11 characters of the etring to calculate the timestamp, but 
it is not precise without time and year information.

What do I do to have this code work properly again?



------------------------------------------------------------------------



Edit this bug report at http://bugs.php.net/?id=12656&edit=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]

Reply via email to