From ee7b4ca9aeb8f407bbb911c82bd825bd3573ca74 Mon Sep 17 00:00:00 2001 From: Santiago Pastorino Date: Tue, 30 Mar 2010 20:20:25 -0300 Subject: [PATCH] Don't cache the utc_offset we are already caching the timezone --- .../lib/active_support/values/time_zone.rb | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/activesupport/lib/active_support/values/time_zone.rb b/activesupport/lib/active_support/values/time_zone.rb index 836f469..85ce39e 100644 --- a/activesupport/lib/active_support/values/time_zone.rb +++ b/activesupport/lib/active_support/values/time_zone.rb @@ -184,7 +184,7 @@ module ActiveSupport end def utc_offset - @utc_offset ||= tzinfo.current_period.utc_offset + tzinfo.current_period.utc_offset end # Returns the offset of this time zone as a formatted string, of the -- 1.7.0