commit 6e77fedee83d3eef0426acdc4504910f97cf4b48 from: tb date: Sat Dec 20 23:12:53 2025 UTC httpd: fix server_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 change to localtime.c changed GMT to UTC. From Sören Tempel, ok sthen commit - 3f1c295feef22d2d6550dc7686e2c0f94b67d306 commit + 6e77fedee83d3eef0426acdc4504910f97cf4b48 blob - f6412e80bf7e93b6807b4c66464c6782713e3747 blob + 485b67bc5e8079007e2ab36d1d5e4bea70086f49 --- server_http.c +++ server_http.c @@ -1,4 +1,4 @@ -/* $OpenBSD: server_http.c,v 1.156 2025/11/28 16:10:00 rsadowski Exp $ */ +/* $OpenBSD: server_http.c,v 1.157 2025/12/20 23:12:53 tb Exp $ */ /* * Copyright (c) 2020 Matthias Pressfreund @@ -796,7 +796,7 @@ server_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)); } const char *