From 04bf90c142a3977de03951fd976e4d650d60a25a Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Tue, 19 Dec 2006 17:29:55 +0000 Subject: (asn_date): more attempts to handle timezone, e.g., MacOSX defines tm_gmtoff, ChoF says. Is gm_toff from dvipdfm just a mistake? git-svn-id: svn://tug.org/texlive/trunk@2812 c570f23f-e606-0410-a88d-b1316a301751 --- Build/source/texk/dvipdfmx/src/pdfdoc.c | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/Build/source/texk/dvipdfmx/src/pdfdoc.c b/Build/source/texk/dvipdfmx/src/pdfdoc.c index d2047debe55..1a64b198c55 100644 --- a/Build/source/texk/dvipdfmx/src/pdfdoc.c +++ b/Build/source/texk/dvipdfmx/src/pdfdoc.c @@ -491,12 +491,14 @@ static long asn_date (char *date_string) { #ifndef HAVE_TIMEZONE -#ifdef TM_GM_TOFF - #define timezone (bdtime->gm_toff) -#else - #define timezone 0l -#endif /* TM_GM_TOFF */ -#endif /* HAVE_TIMEZONE */ +# ifdef HAVE_TM_GMTOFF +# define timezone (-bdtime->tm_gmtoff) +# elif defined (TM_GM_TOFF) +# define timezone (-bdtime->gm_toff) +# else +# define timezone 0l +# endif /* not HAVE_TM_GMTOFF and not TM_GM_TOFF */ +#endif /* not HAVE_TIMEZONE */ time_t current_time; struct tm *bd_time; -- cgit v1.2.3