From 8870aff0a3691ddb58441187f292e712d3f47dc2 Mon Sep 17 00:00:00 2001 From: Dan Winship Date: Fri, 13 Apr 2001 17:29:08 +0000 Subject: Fix the syntactic bogon here, and attempt to fix the logical bogon too. * cal-util/timeutil.c (time_from_isodate): Fix the syntactic bogon here, and attempt to fix the logical bogon too. (tm_gmtoff and timezone have opposite signs... I'm assuming Federico tested the Linux case, so I'm flipping the sign of the BSD case. But maybe he didn't and it's supposed to be the other way...) svn path=/trunk/; revision=9300 --- calendar/cal-util/timeutil.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'calendar/cal-util') diff --git a/calendar/cal-util/timeutil.c b/calendar/cal-util/timeutil.c index 2d769623aa..764ec5d078 100644 --- a/calendar/cal-util/timeutil.c +++ b/calendar/cal-util/timeutil.c @@ -97,8 +97,8 @@ time_from_isodate (const char *str) if (len == 16) { #if defined(HAVE_TM_GMTOFF) - t -= my_tm.tm_gmtoff; -#elsif defined(HAVE_TIMEZONE) + t += my_tm.tm_gmtoff; +#elif defined(HAVE_TIMEZONE) t -= timezone; #endif } -- cgit v1.2.3