Collin Funk <[email protected]> writes:

> * Change gmtime(3) to return time in UTC rather than GMT, as required by
>   our own manpage, POSIX, C standards, and other OSes.

[...]

>
> The first point (UTC instead of GMT) is mentioned in
> doc/posix-functions/gmtime_r.texi. I'll double check it and update the
> docs.

Confirmed that this is the case in a VM and pushed the attached patch.

Collin

>From 9bb08f510a0a345106c52a8cccd64825bacd679a Mon Sep 17 00:00:00 2001
Message-ID: <9bb08f510a0a345106c52a8cccd64825bacd679a.1761160597.git.collin.fu...@gmail.com>
From: Collin Funk <[email protected]>
Date: Wed, 22 Oct 2025 12:15:16 -0700
Subject: [PATCH] doc: Update gmtime_r documentation for OpenBSD 7.8.

* doc/posix-functions/gmtime_r.texi: Mention that only OpenBSD 7.7 and
earlier use GMT instead of UTC.
---
 ChangeLog                         | 6 ++++++
 doc/posix-functions/gmtime_r.texi | 2 +-
 2 files changed, 7 insertions(+), 1 deletion(-)

diff --git a/ChangeLog b/ChangeLog
index c674c1e203..a28b2c5225 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2025-10-22  Collin Funk  <[email protected]>
+
+	doc: Update gmtime_r documentation for OpenBSD 7.8.
+	* doc/posix-functions/gmtime_r.texi: Mention that only OpenBSD 7.7 and
+	earlier use GMT instead of UTC.
+
 2025-10-21  Collin Funk  <[email protected]>
 
 	fenv-rounding tests: Avoid test failure on Android.
diff --git a/doc/posix-functions/gmtime_r.texi b/doc/posix-functions/gmtime_r.texi
index 561c100dbc..6933b8dd78 100644
--- a/doc/posix-functions/gmtime_r.texi
+++ b/doc/posix-functions/gmtime_r.texi
@@ -27,5 +27,5 @@ @node gmtime_r
 @item
 This function sets the field @code{tm_zone} to @code{"GMT"}
 instead of @code{"UTC"} on some platforms:
-glibc, NetBSD, OpenBSD, Minix, Cygwin, Android.
+glibc, NetBSD, OpenBSD 7.7, Minix, Cygwin, Android.
 @end itemize
-- 
2.51.0

Reply via email to