platform_bionic/libc/tzcode
Almaz Mingaleev 24bfd8eed7 Handle null TM_ZONE in z case in strftime.
For correct %z output tzcode requires tm struct to be modified by
mktime call or be output of localtime. But as TM_ZONE is null, we
are comparing against +0000.

See https://mm.icann.org/pipermail/tz/2022-July/031674.html

Europe/Lisbon test is added to confirm that current implementation
deviates from libc specification and uses more than just tm_isdst
to find out a time zone's offset.

Bug: 239128167

Test: adb shell /data/nativetest64/bionic-unit-tests-static/bionic-unit-tests-static
Test: adb shell /data/nativetest/bionic-unit-tests-static/bionic-unit-tests-static

Change-Id: Ic27775c840467c4e9ef55bc730a313709372314b
2022-07-25 16:39:12 +01:00
..
asctime.c Bump tzcode from 2016g to 2022a*. 2022-06-07 09:59:16 +01:00
bionic.cpp Revert "Revert "Do not look for tzdata file in /data."" 2022-06-30 09:39:53 +01:00
difftime.c Bump tzcode from 2016g to 2022a*. 2022-06-07 09:59:16 +01:00
localtime.c Bump tzcode from 2016g to 2022a*. 2022-06-07 09:59:16 +01:00
private.h Bump tzcode from 2016g to 2022a*. 2022-06-07 09:59:16 +01:00
strftime.c Handle null TM_ZONE in z case in strftime. 2022-07-25 16:39:12 +01:00
strptime.c Incorporate upstream's strptime %Z/%z support. 2020-09-01 19:11:28 -07:00
tzfile.h Bump tzcode from 2016g to 2022a*. 2022-06-07 09:59:16 +01:00