diff options
author | Antony Dovgal <tony2001@php.net> | 2005-07-08 12:39:51 +0000 |
---|---|---|
committer | Antony Dovgal <tony2001@php.net> | 2005-07-08 12:39:51 +0000 |
commit | eb7dc34bfb46ae4077c924e26d40e15a193767df (patch) | |
tree | d739b1bc722ffff4fed87c27c6154693b9aa23de | |
parent | 592a0835fa9634134d14d62f24a39a67360d49a5 (diff) | |
download | php-git-eb7dc34bfb46ae4077c924e26d40e15a193767df.tar.gz |
make use of T token
-rw-r--r-- | ext/standard/head.c | 7 |
1 files changed, 3 insertions, 4 deletions
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); } } |