summaryrefslogtreecommitdiff
path: root/Build/source/texk/dvipdfmx/src
diff options
context:
space:
mode:
Diffstat (limited to 'Build/source/texk/dvipdfmx/src')
-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;