cvs: /php4/ext/standard datetime.c

From: Date: Fri, 25 Feb 2000 16:46:23 +0000
Subject: cvs: /php4/ext/standard datetime.c
Groups: php.version4 
Request: Send a blank email to php-version4+get-10972@lists.php.net to get a copy of this message
zeev Fri Feb 25 08:46:23 2000 EDT Modified files: /php4/ext/standard datetime.c Log: Make 4-diogit date RFC 2068 compliant Index: php4/ext/standard/datetime.c diff -u php4/ext/standard/datetime.c:1.30 php4/ext/standard/datetime.c:1.31 --- php4/ext/standard/datetime.c:1.30 Sat Feb 19 15:41:20 2000 +++ php4/ext/standard/datetime.c Fri Feb 25 08:45:52 2000 @@ -19,7 +19,7 @@ */ -/* $Id: datetime.c,v 1.30 2000/02/19 23:41:20 zeev Exp $ */ +/* $Id: datetime.c,v 1.31 2000/02/25 16:45:52 zeev Exp $ */ #include "php.h" @@ -489,8 +489,8 @@ tm1 = gmtime_r(&t, &tmbuf); str = emalloc(81); if (PG(y2k_compliance)) { - snprintf(str, 80, "%s, %02d-%s-%04d %02d:%02d:%02d GMT", - day_full_names[tm1->tm_wday], + snprintf(str, 80, "%s, %02d %s %04d %02d:%02d:%02d GMT", + day_short_names[tm1->tm_wday], tm1->tm_mday, mon_short_names[tm1->tm_mon], tm1->tm_year+1900,

« previous php.version4 (#10972) next »