php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #50425 strftime doesn't print day of month
Submitted: 2009-12-09 11:44 UTC Modified: 2009-12-09 11:52 UTC
Votes:1
Avg. Score:3.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: dlorre at yahoo dot com Assigned:
Status: Not a bug Package: Date/time related
PHP Version: 5.3.1 OS: Windows XP
Private report: No CVE-ID: None
 [2009-12-09 11:44 UTC] dlorre at yahoo dot com
Description:
------------
http://fr.php.net/manual/en/function.strftime.php

%e  	Day of the month, with a space preceding single digits  	 1 to 31

strftime should display the day of the month when %e is specified, it returns blank.

Reproduce code:
---------------
<?php
echo strftime(" Date: %A, %B %e %Y");
echo "<br />" ;
echo strftime(" Date: %A, %B %d %Y");
?>


Expected result:
----------------
Date: mercredi, d?cembre  9 2009
Date: mercredi, d?cembre 09 2009

Actual result:
--------------
Date: mercredi, d?cembre 2009
Date: mercredi, d?cembre 09 2009

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2009-12-09 11:52 UTC] derick@php.net
Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to report
a bug at http://bugs.php.net/how-to-report.php

That same documentation page also states:

"This means that %e, %T, %R and, %D (and possibly others) - as well as dates prior to Jan 1, 1970 - will not work on Windows..."
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Jun 02 08:01:31 2024 UTC