From 6b0812131958c89344a3f78d0611b3040de4b6cd Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Mon, 18 Aug 2014 12:42:53 -0700 Subject: [PROPOSED PATCH 1/2] * strftime.c (_fmt): When called from tm_strftime, use tm_gmtoff for %z even if tm_isdst is negative. --- strftime.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/strftime.c b/strftime.c index ccb3c22..301e942 100644 --- a/strftime.c +++ b/strftime.c @@ -512,8 +512,6 @@ label: long diff; char const * sign; - if (t->tm_isdst < 0) - continue; #ifdef TM_GMTOFF if (z) diff = t->TM_GMTOFF; @@ -539,6 +537,8 @@ label: ** determinable, so output nothing if the ** appropriate variables are not available. */ + if (t->tm_isdst < 0) + continue; if (t->tm_isdst == 0) #ifdef USG_COMPAT diff = -timezone; -- 1.9.1