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 (profile)
Status: Closed Package: Date/time related
PHP Version: 5CVS-2005-12-10 (cvs) OS: *
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
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
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

Pull Requests

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-2024 The PHP Group
All rights reserved.
Last updated: Thu Nov 21 12:01:29 2024 UTC