php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #35624 strtotime doesn't accept 3 character weekdays
Submitted: 2005-12-10 19:11 UTC Modified: 2005-12-11 23:37 UTC
From: uwe dot dauernheim at gmx dot de Assigned: derick
Status: Closed Package: Date/time related
PHP Version: 5CVS-2005-12-10 (cvs) OS: *
Private report: No CVE-ID:
 [2005-12-10 19:11 UTC] 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)

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-12-10 19:18 UTC] sniper@php.net
It happens with latest CVS too.
 [2005-12-11 23:37 UTC] iliaa@php.net
This bug has been fixed in CVS.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
 
Thank you for the report, and for helping us make PHP better.


 
PHP Copyright © 2001-2014 The PHP Group
All rights reserved.
Last updated: Sat Apr 19 14:01:50 2014 UTC