On 2014/08/18 16:08, Daurnimator wrote: > On 18 August 2014 16:01, Stuart Henderson <[email protected]> wrote: > > > > That said, given that you have just found 3 implementations which have > > the same (frankly IMHO sensible) behaviour, musl seems to be the odd one > > out. > > > > It is correctly documented as always returning UTC (see > http://anoncvs.estpak.ee/cgi-bin/cgit/openbsd-src/tree/lib/libc/time/strftime.3#n145 > ) > No-where in libc do you deal with a timezone-adjusted epoch. > > I'd say the documentation is correct; and the code is not. >
So you have a fairly old API which works the same way in libc used in BSDs, common Linux distributions, solaris derivatives (I checked smartos) and probably others (haven't walked downstairs to check the mac), and it is already used by various existing software. This isn't something you can really change just because it doesn't work how you expect...
