|  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 (profile)
Status: Closed Package: Date/time related
PHP Version: 5CVS-2005-12-10 (cvs) OS: *
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: uwe dot dauernheim at gmx dot de
New email:
PHP Version: OS:


 [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-2021 The PHP Group
All rights reserved.
Last updated: Fri Apr 23 05:01:23 2021 UTC