in reply to (MeowChow) Re2: Determining Daylight Savings Time
in thread Determining Daylight Savings Time
You don't have to localize all of %ENV: local $ENV{TZ} = 'GMT';
Please test before posting. Localizing a single %ENV value will not work as expected.
yields:{ local $\ = "\n"; print scalar localtime; { local $ENV{TZ} = 'GMT'; print scalar localtime; } print scalar localtime, ", which is wrong."; }
Update: environment: Debian GNU/Linux sid x86, Perl 5.6.1Thu May 30 23:19:56 2002 Thu May 30 21:19:56 2002 Thu May 30 21:19:56 2002, which is wrong.
- Yes, I reinvent wheels.
- Spam: Visit eurotraQ.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
(MeowChow) Re3: Determining Daylight Savings Time
by MeowChow (Vicar) on May 30, 2002 at 21:39 UTC |