From: Antony Dovgal Date: Fri, 8 Jul 2005 12:39:51 +0000 (+0000) Subject: make use of T token X-Git-Tag: php-5.1.0b3~97 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=eb7dc34bfb46ae4077c924e26d40e15a193767df;p=php make use of T token --- diff --git a/ext/standard/head.c b/ext/standard/head.c index 6fe646e8b3..d6b3530f8a 100644 --- a/ext/standard/head.c +++ b/ext/standard/head.c @@ -104,16 +104,15 @@ PHPAPI int php_setcookie(char *name, int name_len, char *value, int value_len, t * pick an expiry date 1 year and 1 second in the past */ t = time(NULL) - 31536001; - dt = php_format_date("D, d-M-Y H:i:s", sizeof("D, d-M-Y H:i:s")-1, t, 0); - sprintf(cookie, "Set-Cookie: %s=deleted; expires=%s GMT", name, dt); + dt = php_format_date("D, d-M-Y H:i:s T", sizeof("D, d-M-Y H:i:s T")-1, t, 0); + sprintf(cookie, "Set-Cookie: %s=deleted; expires=%s", name, dt); efree(dt); } else { sprintf(cookie, "Set-Cookie: %s=%s", name, value ? encoded_value : ""); if (expires > 0) { strcat(cookie, "; expires="); - dt = php_format_date("D, d-M-Y H:i:s", sizeof("D, d-M-Y H:i:s")-1, t, 0); + dt = php_format_date("D, d-M-Y H:i:s T", sizeof("D, d-M-Y H:i:s T")-1, t, 0); strcat(cookie, dt); - strcat(cookie, " GMT"); efree(dt); } }