#48039 [Opn->Bgs]: date("S") doesn't return 0th values correctly

From: Date: Tue, 21 Apr 2009 20:43:05 +0000
Subject: #48039 [Opn->Bgs]: date("S") doesn't return 0th values correctly
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-136110@lists.php.net to get a copy of this message
ID: 48039 Updated by: derick@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

« previous php.bugs (#136110) next »