aboutsummaryrefslogtreecommitdiffstats
path: root/main/stdtime
diff options
context:
space:
mode:
authortilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b>2007-10-16 19:41:40 +0000
committertilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b>2007-10-16 19:41:40 +0000
commit777c7ce5663138f85226e467cfe4b5cd4b4d9c26 (patch)
tree0aa2586ef3d38391371a5944cc46dfaade2373e0 /main/stdtime
parentc2c14cf61252a9455a8f9144c0bc40dbc6a9a044 (diff)
Also set up gmtoff (this is used in the %z gnu extension to strftime)
Reported and fixed by jcmoore Closes issue #11002 git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@85921 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'main/stdtime')
-rw-r--r--main/stdtime/localtime.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/main/stdtime/localtime.c b/main/stdtime/localtime.c
index 1922e4a22..16274c8ec 100644
--- a/main/stdtime/localtime.c
+++ b/main/stdtime/localtime.c
@@ -1133,6 +1133,7 @@ static struct tm *localsub(const time_t *timep, const long offset, struct tm *tm
*/
result = timesub(&t, ttisp->tt_gmtoff, sp, tmp);
tmp->tm_isdst = ttisp->tt_isdst;
+ tmp->tm_gmtoff = ttisp->tt_gmtoff;
#ifdef TM_ZONE
tmp->TM_ZONE = &sp->chars[ttisp->tt_abbrind];
#endif /* defined TM_ZONE */