commit 952c015b38f9d4dcaf68a269c4018a920f35eb5f from: tb date: Sun Dec 21 07:26:55 2025 UTC relayd: fix relay_http_time() to emit GMT times again The HTTP standard RFC 9110 requires GMT, in HTTP-date. We used to do this until a recent modification to localtime.c changed GMT to UTC. sync from httpd commit - 37603cbd06eaaba2570979c140c6c94d51279148 commit + 952c015b38f9d4dcaf68a269c4018a920f35eb5f blob - 0c511d0b9eb53f34dec5f157bc361bc4d2590dc7 blob + b4386966dd588c93cbf607623a4261f9968ba15e --- relay_http.c +++ relay_http.c @@ -1,4 +1,4 @@ -/* $OpenBSD: relay_http.c,v 1.90 2024/07/20 06:54:15 anton Exp $ */ +/* $OpenBSD: relay_http.c,v 1.91 2025/12/21 07:26:55 tb Exp $ */ /* * Copyright (c) 2006 - 2016 Reyk Floeter @@ -1171,7 +1171,7 @@ relay_http_time(time_t t, char *tmbuf, size_t len) if (t == -1 || gmtime_r(&t, &tm) == NULL) return (-1); else - return (strftime(tmbuf, len, "%a, %d %h %Y %T %Z", &tm)); + return (strftime(tmbuf, len, "%a, %d %h %Y %T GMT", &tm)); } void