vendor/bundle/ruby/2.3.0/gems/tzinfo-1.2.2/lib/tzinfo/zoneinfo_timezone_info.rb
# Zoneinfo doesn't include the offset from standard time (std_offset).
# Derive the missing offsets by looking at changes in the total UTC
# offset.
#
# This will be run through forwards and then backwards by the parse 
# method.
Zoneinfo doesn't include the offset from standard time (std_offset).
Derive the missing offsets by looking at changes in the total UTC
offset.

This will be run through forwards and then backwards by the parse
method.
Zoneinfo doesn ' t include the offset from standard time ( std_offset ) . Derive the missing offsets by looking at changes in the total UTC offset . This will be run through forwards and then backwards by the parse method .
def derive_offsets(transitions, offsets)      
        previous_offset = nil
        transitions.each do |t|
          offset = offsets[t[:offset]]
          if !offset[:std_offset] && offset[:is_dst] && previous_offset
            difference = offset[:utc_total_offset] - previous_offset[:utc_total_offset]
            if previous_offset[:is_dst]
              if previous_offset[:std_offset]
                std_offset = previous_offset[:std_offset] + difference
              else
                std_offset = nil
              end
            else
              std_offset = difference
            end
            if std_offset && std_offset > 0
              offset[:std_offset] = std_offset
              offset[:utc_offset] = offset[:utc_total_offset] - std_offset
            end
          end
          previous_offset = offset
        end
      end
def derive_offsets ( transitions , offsets ) previous_offset = nil transitions . each do | t | offset = offsets [ t [ :offset ] ] if ! offset [ :std_offset ] && offset [ :is_dst ] && previous_offset difference = offset [ :utc_total_offset ] - previous_offset [ :utc_total_offset ] if previous_offset [ :is_dst ] if previous_offset [ :std_offset ] std_offset = previous_offset [ :std_offset ] + difference else std_offset = nil end else std_offset = difference end if std_offset && std_offset > 0 offset [ :std_offset ] = std_offset offset [ :utc_offset ] = offset [ :utc_total_offset ] - std_offset end end previous_offset = offset end end
Zoneinfo doesn't include the offset from standard time (std_offset).
Zoneinfo doesn ' t include the offset from standard time ( std_offset ) .
transitions
<not_specific>
offsets
<not_specific>