class ActiveSupport::TimeZone

def utc_offset

Returns the offset of this time zone from UTC in seconds.
def utc_offset
  if @utc_offset
    @utc_offset
  else
    @current_period ||= tzinfo.try(:current_period)
    @current_period.try(:utc_offset)
  end
end