* libc/include/time.h (__tzrule_struct): Make offset long, since
a 16-bit int overflows on a 12-hour offset.
* libc/sys/linux/include/time.h: Ditto.
* libc/time/mktime.c (mktime): Use new type of __tzrule.offset.
* libc/time/mktm_r.c: Ditto.
* libc/time/gettzinfo.c: Ditto.
* libc/time/strftime.c (strftime): Fix '%x' to deal with negative
years. Fix '%z' to use long, not int.
|
||
|---|---|---|
| .. | ||
| Makefile.am | ||
| Makefile.in | ||
| asctime.c | ||
| asctime_r.c | ||
| clock.c | ||
| ctime.c | ||
| ctime_r.c | ||
| difftime.c | ||
| gettzinfo.c | ||
| gmtime.c | ||
| gmtime_r.c | ||
| lcltime.c | ||
| lcltime_r.c | ||
| local.h | ||
| mktime.c | ||
| mktm_r.c | ||
| strftime.c | ||
| strptime.c | ||
| time.c | ||
| time.tex | ||
| tzlock.c | ||
| tzset.c | ||
| tzset_r.c | ||