cvs: php4 /ext/standard datetime.c

From: Date: Fri, 14 Jul 2000 01:08:59 +0000
Subject: cvs: php4 /ext/standard datetime.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-747@lists.php.net to get a copy of this message
rasmus Thu Jul 13 18:08:59 2000 EDT Modified files: /php4/ext/standard datetime.c Log: Use dashes and short day name in cookies since some browsers seem picky about this @ Use dashes and short day name in cookies since some browsers seem picky @ about this (Rasmus) Index: php4/ext/standard/datetime.c diff -u php4/ext/standard/datetime.c:1.50 php4/ext/standard/datetime.c:1.51 --- php4/ext/standard/datetime.c:1.50 Tue Jul 4 09:16:32 2000 +++ php4/ext/standard/datetime.c Thu Jul 13 18:08:59 2000 @@ -19,7 +19,7 @@ */ -/* $Id: datetime.c,v 1.50 2000/07/04 16:16:32 mikew Exp $ */ +/* $Id: datetime.c,v 1.51 2000/07/14 01:08:59 rasmus Exp $ */ #include "php.h" @@ -584,7 +584,7 @@ tm1 = php_gmtime_r(&t, &tmbuf); str = emalloc(81); if (PG(y2k_compliance)) { - snprintf(str, 80, "%s, %02d %s %04d %02d:%02d:%02d GMT", + 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], @@ -592,7 +592,7 @@ tm1->tm_hour, tm1->tm_min, tm1->tm_sec); } else { snprintf(str, 80, "%s, %02d-%s-%02d %02d:%02d:%02d GMT", - day_full_names[tm1->tm_wday], + day_short_names[tm1->tm_wday], tm1->tm_mday, mon_short_names[tm1->tm_mon], ((tm1->tm_year)%100),

« previous php.cvs (#747) next »