]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 829601: Bugzilla->local_timezone should be stored in process_cache instead of...
authorFrédéric Buclin <LpSolit@gmail.com>
Mon, 14 Jan 2013 18:02:34 +0000 (19:02 +0100)
committerFrédéric Buclin <LpSolit@gmail.com>
Mon, 14 Jan 2013 18:02:34 +0000 (19:02 +0100)
r=glob a=LpSolit

Bugzilla.pm

index 26c8ebbc6b408ffbcf1e029073fc8ef732902911..c276066b943288bd1cb2965530702471ce7a2835 100644 (file)
@@ -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.