* localtime.cc (tzload): Implement setting __tzrule's offset member
using newlib's __gettzinfo () interface also when tzload returns successfully.
This commit is contained in:
parent
03d59fb47d
commit
51291d61e2
|
@ -1,3 +1,9 @@
|
||||||
|
2009-04-14 Corinna Vinschen <corinna@vinschen.de>
|
||||||
|
|
||||||
|
* localtime.cc (tzload): Implement setting __tzrule's offset member
|
||||||
|
using newlib's __gettzinfo () interface also when tzload returns
|
||||||
|
successfully.
|
||||||
|
|
||||||
2009-04-13 Dave Korn <dave.korn.cygwin@gmail.com>
|
2009-04-13 Dave Korn <dave.korn.cygwin@gmail.com>
|
||||||
|
|
||||||
* include/stdint.h (intptr_t): Remove long from type.
|
* include/stdint.h (intptr_t): Remove long from type.
|
||||||
|
|
|
@ -859,6 +859,10 @@ tzload(const char *name, struct state *sp)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
__gettzinfo ()->__tzrule[0].offset
|
||||||
|
= -sp->ttis[1].tt_gmtoff;
|
||||||
|
__gettzinfo ()->__tzrule[1].offset
|
||||||
|
= -sp->ttis[0].tt_gmtoff;
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue