def apply_utc_offset( time )
    return time if utc_offset.nil?

    time = time.dup
    if utc_offset == 0
      time.utc
    else
      time.localtime(utc_offset)
    end
    time
  end
def apply_utc_offset( time )
    return time if utc_offset.nil?

    time = time.dup
    if utc_offset == 0
      time.utc
    else
      time.localtime(utc_offset)
    end
    time
  end
Internal: Helper method that applies the UTC offset to the given `time`
 instance. A new Time is returned that is equivalent to the original `time`
 but pinned to the timezone given by the UTC offset.

 If a UTC offset has not been set, then the original `time` instance is
 returned unchanged.