PDA

View Full Version : [bug] strtotime does not convert dates correctly


hm2k
05-26-2010, 11:06 AM
echo date('d-M-Y',strtotime('14-Aug-2009'));
PHP result: 14-Aug-2009
Quercus result: 30-Jan-2016

echo date('d-M-Y',strtotime('2009/07/14'));
PHP result: 14-Jul-2009
Quercus result: 07-May-2014

Also, you may wish to run some of these tests against strtotime...

http://cvs.php.net/viewvc.cgi/php-src/ext/date/tests/

Thanks.