ID:               45847
 Updated by:       [EMAIL PROTECTED]
 Reported By:      vincent at vent dot be
 Status:           Open
 Bug Type:         Date/time related
 Operating System: Windows Vista SP1
 PHP Version:      5.2.6
-Assigned To:      
+Assigned To:      derick
 New Comment:

%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.


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

[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

Reply via email to