dda has asked for the wisdom of the Perl Monks concerning the following question:
The code does not work properly at each invocation. Looks like $ENV{TZ} is cached somewhere. If I add some debug messages, like 'warn "$ENV{TZ}"', before calling localtime(), it works always.$ENV{TZ} = "DST"; # something different than current TZ print localtime();
The problem exists only at one of our linux boxes, with perl, v5.8.0 built for i386-linux-thread-multi. Another machines with perl 5.6.1, single-treaded, are not affected.
Probably it is a known issue?
--dda
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: %ENV{TZ} does not always affect CORE::localtime() under multi-threaded perl
by Chmrr (Vicar) on Apr 16, 2003 at 22:35 UTC | |
by dtr (Scribe) on Jul 23, 2003 at 17:08 UTC | |
Re: %ENV{TZ} does not always affect CORE::localtime() under multi-threaded perl
by The Mad Hatter (Priest) on Apr 16, 2003 at 20:23 UTC | |
by dda (Friar) on Apr 16, 2003 at 20:31 UTC | |
by Anonymous Monk on Apr 16, 2003 at 20:51 UTC | |
by The Mad Hatter (Priest) on Apr 16, 2003 at 21:00 UTC |