cvs: php4 /ext/standard datetime.c

From: Date: Fri, 08 Mar 2002 17:25:43 +0000
Subject: cvs: php4 /ext/standard datetime.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-9833@lists.php.net to get a copy of this message
sander Fri Mar 8 12:25:43 2002 EDT Modified files: /php4/ext/standard datetime.c Log: (php_date) Fixed 'r' modifier to always return two digits for the day value (see RFC 822) (#15952). Index: php4/ext/standard/datetime.c diff -u php4/ext/standard/datetime.c:1.83 php4/ext/standard/datetime.c:1.84 --- php4/ext/standard/datetime.c:1.83 Mon Mar 4 06:11:25 2002 +++ php4/ext/standard/datetime.c Fri Mar 8 12:25:43 2002 @@ -19,7 +19,7 @@ */ -/* $Id: datetime.c,v 1.83 2002/03/04 11:11:25 stas Exp $ */ +/* $Id: datetime.c,v 1.84 2002/03/08 17:25:43 sander Exp $ */ #include "php.h" @@ -496,7 +496,7 @@ break; case 'r': #if HAVE_TM_GMTOFF - sprintf(tmp_buff, "%3s, %2d %3s %04d %02d:%02d:%02d %c%02d%02d", + sprintf(tmp_buff, "%3s, %02d %3s %04d %02d:%02d:%02d %c%02d%02d", day_short_names[ta->tm_wday], ta->tm_mday, mon_short_names[ta->tm_mon], @@ -509,7 +509,7 @@ abs( ta->tm_gmtoff % 3600) ); #else - sprintf(tmp_buff, "%3s, %2d %3s %04d %02d:%02d:%02d %c%02d%02d", + sprintf(tmp_buff, "%3s, %02d %3s %04d %02d:%02d:%02d %c%02d%02d", day_short_names[ta->tm_wday], ta->tm_mday, mon_short_names[ta->tm_mon],

« previous php.cvs (#9833) next »