slight change to implementation of time-gmt-offset so that the
gmt_off field of the tm struct is not used (not available in cygwin).
This commit is contained in:
parent
54f683f0e0
commit
af020f909b
|
@ -849,9 +849,14 @@ ikrt_gmt_offset(ikp t){
|
||||||
time_t clock =
|
time_t clock =
|
||||||
unfix(ref(t, off_record_data + 0*wordsize)) * 1000000
|
unfix(ref(t, off_record_data + 0*wordsize)) * 1000000
|
||||||
+ unfix(ref(t, off_record_data + 1*wordsize));
|
+ unfix(ref(t, off_record_data + 1*wordsize));
|
||||||
|
struct tm* m = gmtime(&clock);
|
||||||
|
time_t gmtclock = mktime(m);
|
||||||
|
return fix(clock - gmtclock);
|
||||||
|
/*
|
||||||
struct tm* m = localtime(&clock);
|
struct tm* m = localtime(&clock);
|
||||||
ikp r = fix(m->tm_gmtoff);
|
ikp r = fix(m->tm_gmtoff);
|
||||||
return r;
|
return r;
|
||||||
|
*/
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue