diff options
| author | Rasmus Lerdorf <rasmus@php.net> | 2000-07-14 01:08:59 +0000 |
|---|---|---|
| committer | Rasmus Lerdorf <rasmus@php.net> | 2000-07-14 01:08:59 +0000 |
| commit | 1d0ae2cde4f32d973aa3803ce01d367f0a2eb3c0 (patch) | |
| tree | a69d3a2415ebbf639dc7cad7008dbd16b2728069 /ext/standard/datetime.c | |
| parent | 411280eb9d356501be188fc70f43c95a89c72da0 (diff) | |
| download | php-git-1d0ae2cde4f32d973aa3803ce01d367f0a2eb3c0.tar.gz | |
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)
Diffstat (limited to 'ext/standard/datetime.c')
| -rw-r--r-- | ext/standard/datetime.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/standard/datetime.c b/ext/standard/datetime.c index 91185c6caa..2c4622ac0b 100644 --- a/ext/standard/datetime.c +++ b/ext/standard/datetime.c @@ -584,7 +584,7 @@ char *php_std_date(time_t t) 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 @@ char *php_std_date(time_t t) 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), |
