summaryrefslogtreecommitdiff
path: root/Build
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2006-12-19 17:29:55 +0000
committerKarl Berry <karl@freefriends.org>2006-12-19 17:29:55 +0000
commit04bf90c142a3977de03951fd976e4d650d60a25a (patch)
tree1276e90d68cf7a7fff46bf83360bf83c2e9ecf63 /Build
parent1e298c548919394a0daf6243076a734b9b8c2fe7 (diff)
(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
Diffstat (limited to 'Build')
-rw-r--r--Build/source/texk/dvipdfmx/src/pdfdoc.c14
1 files 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;