diff options
| -rw-r--r-- | http.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -2753,7 +2753,7 @@ failure: static int append_expire(struct dynstr *const d, const struct tm *const exp) { int ret = -1; - char s[sizeof "Thu, 01 Jan 1970 00:00:00 GMT"]; + char s[sizeof "Thu, 01 Jan 1970 00:00:00 XXXX"]; const locale_t l = newlocale(LC_TIME_MASK, "POSIX", (locale_t)0); if (l == (locale_t)0) @@ -2761,7 +2761,7 @@ static int append_expire(struct dynstr *const d, const struct tm *const exp) fprintf(stderr, "%s: newlocale(3): %s\n", __func__, strerror(errno)); goto end; } - else if (!strftime_l(s, sizeof s, "%a, %d %b %Y %H:%M:%S GMT", exp, l)) + else if (!strftime_l(s, sizeof s, "%a, %d %b %Y %H:%M:%S %Z", exp, l)) { fprintf(stderr, "%s: strftime_l(3) failed\n", __func__); return -1; |
