]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Also set up gmtoff (this is used in the %z gnu extension to strftime)
authorTilghman Lesher <tilghman@meg.abyt.es>
Tue, 16 Oct 2007 19:41:40 +0000 (19:41 +0000)
committerTilghman Lesher <tilghman@meg.abyt.es>
Tue, 16 Oct 2007 19:41:40 +0000 (19:41 +0000)
Reported and fixed by jcmoore
Closes issue #11002

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@85921 65c4cc65-6c06-0410-ace0-fbb531ad65f3

main/stdtime/localtime.c

index 1922e4a22d1828549b37bec4dcc131e6691083f7..16274c8ece1af532d8c96fbbd54357086858a8f2 100644 (file)
@@ -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 */