#35624 [Opn->Fbk]: strtotime doesn't accept 3 character weekdays
ID: 35624
Updated by: tony2001@php.net
Reported By: uwe dot dauernheim at gmx dot de
-Status: Open
+Status: Feedback
Bug Type: Date/time related
PHP Version: 5.1.1
Previous Comments:
------------------------------------------------------------------------
[2005-12-10 19:17:12] tony2001@php.net
Please try using this CVS snapshot:
http://snaps.php.net/php5.1-latest.tar.gz
For Windows:
http://snaps.php.net/win32/php5.1-win32-latest.zip
------------------------------------------------------------------------
[2005-12-10 19:11:47] uwe dot dauernheim at gmx dot de
Description:
------------
The function strtotime() does not work correctly, when using three
character weekdays.
Reproduce code:
---------------
echo date('D', strtotime('mon'));
Expected result:
----------------
Mon
Actual result:
--------------
(Suggest it's saturday)
Mon (5.0.4)
Mon (5.0.5)
Sat (5.1.0)
Sat (5.1.1)
? (CVS)
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=35624&edit=1
Thread (6 messages)