It's not standard for jmktime or jstrftime to depend on jtm.tm_gmtoff.
Instead they should use local timezone values. At-least for strftime it said in POSIX.1-2008:
Local timezone information is used as though strftime() called tzset().
Current approach makes timezone unaware transforms hard.
This is a test showing incompatibilities with Linux glibc:
It's not standard for
jmktime
orjstrftime
to depend onjtm.tm_gmtoff
. Instead they should use local timezone values. At-least forstrftime
it said in POSIX.1-2008:Current approach makes timezone unaware transforms hard.
This is a test showing incompatibilities with Linux glibc:
The output I've got on a machine with non-UTC localtime: