Today I learned that glibc has a broken %s implementation in strftime. It applies the timezone even when we want UTC...
Today I learned that glibc has a broken %s implementation in strftime. It applies the timezone even when we want UTC...
@bagder Man page says "The number of seconds since the Epoch, 1970-01-01 00:00:00 +0000 (UTC). (TZ) (Calculated from mktime(tm).)"
Everything there suggests timezone is applied.
Not even arguing if that makes sense, just that it is documented to do that.
@taschenorakel @bagder conversions. Although I’ve never seen live code dealing with utc that doesn’t involve conversions.
Obligatory xkcd: https://xkcd.com/1883/
@bagder Does the refrence implementation in IANA tzdb handle it differently?
There was a discussion about it a few years ago on the tz mailing list: https://mm.icann.org/pipermail/tz/2024-January/058539.html