platform_bionic/libc/tzcode
Elliott Hughes d065c0489e Incorporate upstream's strptime %Z/%z support.
I made toybox use strptime %Z recently (so that it can parse the default
POSIX date(1) output), forgetting that bionic's strptime(3) doesn't
support %Z. Neither does glibc, for that matter; the toybox change works
on glibc effectively by accident --- glibc just ignores the next word
when parsing %Z and assumes that the current time zone ($TZ) is
appropriate. Which it is for the only obvious use case of "round trip
date(1) output".

The related %z is potentially quite a bit more useful in general (parsing
any valid RFC822 time zone), though sadly not useful for the toybox case
that prompted.

Every time I touch this file I promise that I'll actually get us back in
sync with upstream, and every time I fail to get round to it. Maybe
2020 or 2021 will finally be the year...

Also add corresponding tests.

Bug: https://b/167455975
Test: treehugger
Change-Id: I13a7fb7e3ad01ae855750b9314d2eec661fe034f
2020-09-01 19:11:28 -07:00
..
asctime.c Sync with upstream tzcode (2015g). 2015-10-09 15:15:39 -07:00
bionic.cpp Merge "Track name changes in the tzdata format" 2020-07-22 09:50:10 +00:00
difftime.c Sync with upstream tzcode (2015g). 2015-10-09 15:15:39 -07:00
localtime.c Move localtime.c over to CachedProperty. 2017-04-11 14:44:51 -07:00
private.h Upgrade to tzcode-2016f. 2016-07-29 14:04:17 -07:00
strftime.c Fix some easy cases of __ANDROID__ versus __BIONIC__. 2016-09-16 18:27:07 -07:00
strptime.c Incorporate upstream's strptime %Z/%z support. 2020-09-01 19:11:28 -07:00
tzfile.h Sync with upstream tzcode (2015g). 2015-10-09 15:15:39 -07:00