[asterisk-commits] tilghman: branch 1.4 r85921 - /branches/1.4/main/stdtime/localtime.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Tue Oct 16 14:41:40 CDT 2007


Author: tilghman
Date: Tue Oct 16 14:41:40 2007
New Revision: 85921

URL: http://svn.digium.com/view/asterisk?view=rev&rev=85921
Log:
Also set up gmtoff (this is used in the %z gnu extension to strftime)
Reported and fixed by jcmoore
Closes issue #11002

Modified:
    branches/1.4/main/stdtime/localtime.c

Modified: branches/1.4/main/stdtime/localtime.c
URL: http://svn.digium.com/view/asterisk/branches/1.4/main/stdtime/localtime.c?view=diff&rev=85921&r1=85920&r2=85921
==============================================================================
--- branches/1.4/main/stdtime/localtime.c (original)
+++ branches/1.4/main/stdtime/localtime.c Tue Oct 16 14:41:40 2007
@@ -1133,6 +1133,7 @@
 	*/
 	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 */




More information about the asterisk-commits mailing list