Method deprecated
This method is deprecated on the latest stable version of Rails.
The last existing version (v2.0.3) is shown here.
adjust(time)
public
Adjust the given time to the time zone represented by self.
Show source
def adjust(time)
time = time.to_time unless time.is_a?(::Time)
time + utc_offset - time.utc_offset
end