more C99 work

SCCS-file: strftime.c
SCCS-SID: 7.60
This commit is contained in:
Arthur David Olson
2012-07-18 03:02:34 -04:00
committed by Paul Eggert
parent 6fe417a206
commit d52ec9f5f3
+9 -1
View File
@@ -521,7 +521,15 @@ label:
** For now, punt and conform to the
** standard, even though it's incorrect.
*/
diff = -(t->tm_isdst ? altzone : timezone);
diff = 0;
#ifdef USG_COMPAT
if (t->tm_isdst == 0)
diff = timezone;
#endif /* defined USG_COMPAT */
#ifdef ALTZONE
if (t->tm_isdst > 0)
diff = altzone;
#endif /* defined ALTZONE */
#endif /* !defined TM_GMTOFF */
if (diff < 0) {
sign = "-";