#45847 [Opn->Asn]: Strftime returns an empty string when using the %e conversion specifier

[email protected]
Newsgroups php.bugs
Message-ID <[email protected]>
 ID:               45847
 Updated by:       [email protected]
 Reported By:      vincent at vent dot be
-Status:           Open
+Status:           Assigned
 Bug Type:         Date/time related
 Operating System: Windows Vista SP1
 PHP Version:      5.2.6
 Assigned To:      derick


Previous Comments:
------------------------------------------------------------------------

[2008-08-17 22:56:50] [email protected]

%e is not supported on Windows. strftime PHP's implementation is not
portable. Assigned to the maintainer, if he likes to comment more or
make it portable.

See:

http://msdn.microsoft.com/en-us/library/fe06s4ak(VS.71).aspx

for the list of supported identifiers.

------------------------------------------------------------------------

[2008-08-17 22:09:42] vincent at vent dot be

Description:
------------
When I use the strftime() function to format a date, it returns an
empty string when I use the %e conversion specifier in the formatting
string.

I'm using the newest version of the WAMPSERVER package (with Apache
2.2.8).

I hope this helps you any further, do not hesitate to contact me if you
have further questions. Thanks!

-Vincent

Reproduce code:
---------------
<?PHP
$time = mktime();
echo "This does not work: " . strftime("%e", $time);
echo ", while dis does work: " . strftime("%d", $time);
echo ". Adding parameters doesn't fix the problem: " . strftime("%A %e
%B %Y", $time);
?>

Expected result:
----------------
This does not work: 18, while dis does work: 18. Adding parameters
doesn't fix the problem: Monday 18 August 2008

Actual result:
--------------
This does not work: , while dis does work: 18. Adding parameters
doesn't fix the problem: 


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=45847&edit=1
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.