> [EMAIL PROTECTED] - Thu Jan 17 06:26:04 2002]:
> 
> This is a bug report for perl from [EMAIL PROTECTED],
> generated with the help of perlbug 1.33 running under perl v5.6.1.
> 
> 
> -----------------------------------------------------------------
> [Please enter your report here]
> 
> Not sure how platform-specific this is, but if $ENV{TZ} is undefined,
> 'local $ENV{TZ}' does not restore the original libc timezone at the end
> of
> the scope.  On my system,
> 
>       $ perl -le 'print scalar localtime; { local $ENV{TZ} = 'GMT' }
> print scalar localtime'
> 
> Produces:
> 
>       Thu Jan 17 17:23:07 2002
>       Thu Jan 17 22:23:07 2002
> 

This appears to have been fixed sometime prior to Perl 5.8.7.

[EMAIL PROTECTED]:~/perl-current$ ./perl -le 'print scalar localtime; { local
$ENV{TZ} = 'GMT' } print scalar localtime'
Mon Jul  4 23:56:40 2005
Mon Jul  4 23:56:40 2005

Reply via email to