ID: 30034 Updated by: [EMAIL PROTECTED] Reported By: michael at michaelthompson dot org -Status: Assigned +Status: Bogus Bug Type: Date/time related Operating System: * PHP Version: 4.3.8 Assigned To: derick New Comment:
But it's not a bug. The S parameter uses the current day-of-the month to generate the suffix (with the 'j' parameter), and not the day-of-the-year value. >From http://php.net/date: S English ordinal suffix for the day of the month, 2 characters st, nd, rd or th. Works well with j Previous Comments: ------------------------------------------------------------------------ [2004-09-09 08:08:00] [EMAIL PROTECTED] Confirmed on Linux too, having a look now. ------------------------------------------------------------------------ [2004-09-09 06:37:17] michael at michaelthompson dot org Description: ------------ date('zS') does not return the correct value on/above(?) day 251 Reproduce code: --------------- date('zS'); # on (after ?) day 251 Expected result: ---------------- 251st Actual result: -------------- 251th ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=30034&edit=1