Bug #15210: strtotime() doesn't work with ordinal suffixes

From: Date: Thu, 24 Jan 2002 18:35:27 +0000
Subject: Bug #15210: strtotime() doesn't work with ordinal suffixes
Groups: php.dev 
Request: Send a blank email to php-dev+get-78021@lists.php.net to get a copy of this message
From:             basil.hussain@kodakweddings.com
Operating system: Linux 2.2.16enterprise
PHP version:      4.0.5
PHP Bug Type:     Date/time related
Bug description:  strtotime() doesn't work with ordinal suffixes

PHP does not correctly parse ordinal date suffixes in the strtotime()
function. For example:

<?php
echo strtotime("10th August 2002");
echo strtotime("22nd January 1998");
echo strtotime("November 3rd 1980");
?>

They will all fail, returning -1.
-- 
Edit bug report at: http://bugs.php.net/?id=15210&edit=1



Thread (5 messages)

« previous php.dev (#78021) next »