d065c0489e
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 |
||
---|---|---|
.. | ||
asctime.c | ||
bionic.cpp | ||
difftime.c | ||
localtime.c | ||
private.h | ||
strftime.c | ||
strptime.c | ||
tzfile.h |