Commit b4a6fcd3 authored by Frédéric Buclin's avatar Frédéric Buclin

Bug 829601: Bugzilla->local_timezone should be stored in process_cache instead of request_cache

r=glob a=LpSolit
parent 87f87de5
...@@ -616,11 +616,11 @@ sub has_flags { ...@@ -616,11 +616,11 @@ sub has_flags {
sub local_timezone { sub local_timezone {
my $class = shift; my $class = shift;
if (!defined $class->request_cache->{local_timezone}) { if (!defined $class->process_cache->{local_timezone}) {
$class->request_cache->{local_timezone} = $class->process_cache->{local_timezone} =
DateTime::TimeZone->new(name => 'local'); 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. # This creates the request cache for non-mod_perl installations.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment