platform_bionic/libc/tzcode
Satoru Takeuchi 154e2026c8 libc: Fix mktime returns an uncorrect time in empty TZ case
The mktime API returned an uncorrect time when TZ is set as empty.
A timezone UTC/GMT+0 should be implied in the empty case. However
mktime keeps previous information about timezone. If mktime was called
with a timezone which has DST before, the "defaulttype" member of
"state" structure wouldn't be 0. Then it would be used next time,
even though UTC/GMT+0 doesn't have DST.

Added initialization of the "defaulttype" in the empty TZ case.

Change-Id: Ic480c63c548c05444134e0aefb30a7b380e3f40b
2014-11-14 18:13:07 -08:00
..
asctime.c Use snprintf(3) instead of sprintf(3). 2014-10-08 17:10:26 -07:00
difftime.c Upgrade to tzcode2013f plus Android modifications (from tzcode2013d plus Android modifications). 2013-09-27 00:04:30 -07:00
localtime.c libc: Fix mktime returns an uncorrect time in empty TZ case 2014-11-14 18:13:07 -08:00
private.h Build tzcode with -Werror. 2014-06-19 13:54:10 -07:00
strftime.c Remove localtime_tz and strftime_tz. 2014-07-25 15:50:31 -07:00
strptime.c Bug 3330205 Thread safe strptime implementation 2011-01-11 09:33:04 -08:00
tzfile.h Update tzcode to 2013i 2014-02-28 14:38:14 +00:00