in reply to Standard way to convert timezone in multithreaded script
This is a case of POSIX standard hysteresis.
Your CRTs idea of the current TZ setting is determine at startup and then buffered. Changing the value of TZ in your process' (or thread's) copy of the environment won't change the CRT's buffered notion of the timezone directly. After the change you need to request that the CRT re-evaluate it. The POSIX tzset() call is defined to do that. It may work for you on *nix.
|
|---|