From: Frédéric Buclin Date: Mon, 14 Jan 2013 18:02:34 +0000 (+0100) Subject: Bug 829601: Bugzilla->local_timezone should be stored in process_cache instead of... X-Git-Tag: bugzilla-4.4rc2~22 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b4a6fcd38144ac210d178c62bf2b9dae5a1fd958;p=thirdparty%2Fbugzilla.git Bug 829601: Bugzilla->local_timezone should be stored in process_cache instead of request_cache r=glob a=LpSolit --- diff --git a/Bugzilla.pm b/Bugzilla.pm index 26c8ebbc6b..c276066b94 100644 --- a/Bugzilla.pm +++ b/Bugzilla.pm @@ -616,11 +616,11 @@ sub has_flags { sub local_timezone { my $class = shift; - if (!defined $class->request_cache->{local_timezone}) { - $class->request_cache->{local_timezone} = + if (!defined $class->process_cache->{local_timezone}) { + $class->process_cache->{local_timezone} = DateTime::TimeZone->new(name => 'local'); } - return $class->request_cache->{local_timezone}; + return $class->process_cache->{local_timezone}; } # This creates the request cache for non-mod_perl installations.