ID:               48039
 Updated by:       der...@php.net
 Reported By:      ether80 at yahoo dot com
-Status:           Open
+Status:           Bogus
 Bug Type:         Unknown/Other Function
 Operating System: Win XP & Mac 10
 PHP Version:      5.2CVS-2009-04-21 (CVS)
 New Comment:

This is not a bug, date() modifiers use the date of the timestamp from
the second argument, or the current date/time. Today is the 21st, so S
giving "st" is correct.


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

[2009-04-21 20:33:26] ether80 at yahoo dot com

Description:
------------
date("S") returns suffix "st" with zero, instead of "th".  

Reproduce code:
---------------
---
>From manual page: function.date
---
date("30S")
date("20S")



Expected result:
----------------
30th
20th

Actual result:
--------------
30st
20st


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


-- 
Edit this bug report at http://bugs.php.net/?id=48039&edit=1

Reply via email to