fix mktime to use local time (fix from Takeyuki Shiramoto).
This commit is contained in:
parent
29854466fa
commit
11e679edfe
@ -205,7 +205,7 @@ sysmktime(void)
|
|||||||
loc.tm_hour = YAP_IntOfTerm(YAP_ARG4);
|
loc.tm_hour = YAP_IntOfTerm(YAP_ARG4);
|
||||||
loc.tm_min = YAP_IntOfTerm(YAP_ARG5);
|
loc.tm_min = YAP_IntOfTerm(YAP_ARG5);
|
||||||
loc.tm_sec = YAP_IntOfTerm(YAP_ARG6);
|
loc.tm_sec = YAP_IntOfTerm(YAP_ARG6);
|
||||||
loc.tm_isdst = daylight;
|
loc.tm_isdst = -1;
|
||||||
|
|
||||||
if ((tim = mktime(&loc)) == (time_t)-1) {
|
if ((tim = mktime(&loc)) == (time_t)-1) {
|
||||||
return YAP_Unify(YAP_ARG8, YAP_MkIntTerm(errno));
|
return YAP_Unify(YAP_ARG8, YAP_MkIntTerm(errno));
|
||||||
|
@ -1 +1 @@
|
|||||||
Subproject commit d9614e99dc98f8546fdc213c9e45003cf6efd520
|
Subproject commit 9f80255cce18ee268792631aa1180e19a496346f
|
Reference in New Issue
Block a user