I'm writing a bulletin board type program in mod_perl_2 which will display date-times to users in their own time zone, rather than displaying them in the system time zone as many sites seem to do.
In perl 5.6.1, if you modify the value of $ENV{TZ} before calling localtime, then you get back the time fields for that time zone. Very handy if you've got all your dates in your database in UTC.
In 5.8.0, you have to call POSIX::tzset after updating this variable (many thanks to Chmrr for posting this already).
However, this works beautifully from a script, but not at all from mod_perl_2. Does anyone have any idea why this might be the case???