From 55fcefc06002c64aa7c52885af3251cced51dfe5 Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Mon, 18 Aug 2014 14:04:04 -0700 Subject: [PROPOSED PATCH 2/2] * NEWS: Document tm_strftime better. --- NEWS | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/NEWS b/NEWS index e5c6e96..05de29c 100644 --- a/NEWS +++ b/NEWS @@ -47,6 +47,13 @@ Unreleased, experimental changes in a different time zone. The new functions are tzalloc, tzfree, localtime_rz, mktime_z, posix2time_z, time2posix_z, and tm_strftime. + As required by the C standard, when processing %Z or %z directives + strftime no longer examines any struct tm time zone members such as + tm_zone or tm_gmtoff. Instead, strftime attempts (sometimes + incorrectly) to infer time zone information from global state. + The new tm_strftime function generates correct output for %Z and %z + on struct tm objects initialized by localtime and related functions. + tzselect -c now uses a hybrid distance measure that works better in Africa. (Thanks to Alan Barrett for noting the problem.) -- 1.9.1