From 11e679edfe055a04eb5a1d4d49e4c9c485d70779 Mon Sep 17 00:00:00 2001 From: Vitor Santos Costa Date: Sun, 21 Feb 2010 00:59:38 +0000 Subject: [PATCH] fix mktime to use local time (fix from Takeyuki Shiramoto). --- library/system/sys.c | 2 +- packages/jpl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/library/system/sys.c b/library/system/sys.c index fa17de23c..5334e7fae 100644 --- a/library/system/sys.c +++ b/library/system/sys.c @@ -205,7 +205,7 @@ sysmktime(void) loc.tm_hour = YAP_IntOfTerm(YAP_ARG4); loc.tm_min = YAP_IntOfTerm(YAP_ARG5); loc.tm_sec = YAP_IntOfTerm(YAP_ARG6); - loc.tm_isdst = daylight; + loc.tm_isdst = -1; if ((tim = mktime(&loc)) == (time_t)-1) { return YAP_Unify(YAP_ARG8, YAP_MkIntTerm(errno)); diff --git a/packages/jpl b/packages/jpl index d9614e99d..9f80255cc 160000 --- a/packages/jpl +++ b/packages/jpl @@ -1 +1 @@ -Subproject commit d9614e99dc98f8546fdc213c9e45003cf6efd520 +Subproject commit 9f80255cce18ee268792631aa1180e19a496346f