Item8757: Modify Extensions.LocalTimePlugin to work with mod_perl2

pencil
Priority: Normal
Current State: Closed
Released In:
Target Release: n/a
Applies To: Extension
Component: LocalTimePlugin
Branches:
Reported By: BryanThale
Waiting For: Main.BryanThale
Last Change By: BryanThale
From Support.Question433

LocalTimePlugin relies on the Date::Handler CPAN module which in turn relies on the POSIX module which in turn relies on native c calls which in turn rely on environment variables to communicate timezone information.

Date::Handler uses local $ENV{} constructs to temporarily set the timezone to the requested value for the duration of a POSIX call. Unfortunately, under mod_perl 2, %ENV is no longer tied to the underlying "c environment" so setting values in %ENV doesn't change any values in the non-Perl environment seen by the POSIX calls which always see the original (server) timezone setting.

-- BryanThale - 23 Mar 2010

I have a patch for this working and am working on updating the macro and its documentation. How do you want to coordinate the update?

-- BryanThale - 23 Mar 2010

go for it smile I am very thankful for your help - publish at Will (hehe)

-- SvenDowideit - 24 Mar 2010

LocalTimePlugin 1.1 build 7009 (2010-03-31) released.

-- BryanThale - 03 Apr 2010
 
Topic revision: r8 - 03 Apr 2010, BryanThale
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy