|  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
The function strtotime() does not work correctly, when using three character weekdays.

Reproduce code:
echo date('D', strtotime('mon'));

Expected result:

Actual result:
(Suggest it's saturday)

Mon (5.0.4)
Mon (5.0.5)
Sat (5.1.0)
Sat (5.1.1)
? (CVS)


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2005-12-10 19:18 UTC]
It happens with latest CVS too.
 [2005-12-11 23:37 UTC]
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
Thank you for the report, and for helping us make PHP better.

PHP Copyright © 2001-2015 The PHP Group
All rights reserved.
Last updated: Sun Nov 29 19:01:35 2015 UTC