Tim Rice wrote: > > + If *__TP represents local time, _TZ should be set to > ^ > Was the single underscore intentional?
Fixed. Thanks for reporting it. 2024-02-07 Bruno Haible <[email protected]> nstrftime: Fix typo in documentation. Reported by Tim Rice <[email protected]>. * lib/strftime.h (nstrftime): Fix typo in comment. diff --git a/lib/strftime.h b/lib/strftime.h index 8fff11bec1..6e3dbf834c 100644 --- a/lib/strftime.h +++ b/lib/strftime.h @@ -26,7 +26,7 @@ extern "C" { LC_TIME category of the current locale. Uses the time zone __TZ. - If *__TP represents local time, _TZ should be set to + If *__TP represents local time, __TZ should be set to tzalloc (getenv ("TZ")). If *__TP represents universal time (a.k.a. GMT), __TZ should be set to (timezone_t) 0.
