Tyler MacDonald wrote:
> Matt Sergeant <[EMAIL PROTECTED]> wrote:
>
>>>Thread::Semaphore with the same results. If anyone would like the URL
>>>to see this for themselves write me off list. If there is need for
>>>additional information than I apologize in advance for not submitting
>>>it and will do so upon request.
>>
>>Try calling POSIX::tzset() before the call. It should fix it.
>
>
> If you're changing the system timezone, I'd also suggest having a
> small PerlLogHandler that restores the original timezone.. something like
>
> sub handler {
> $ENV{TZ} = $my_old_timezone;
> POSIX::tzset();
> return DECLINED;
> }
>
> That way, your logs will remain in your system's timezone.
this is even better
local $ENV{TZ} = $tz;
POSIX::tzset();
...
--Geoff