This method is deprecated or moved on the latest stable version.
The last existing version (v4.0.2) is shown here.
to_time_in_current_zone()
public
DEPRECATED: Use +Date#in_time_zone+ instead.
Converts Date to a TimeWithZone in the current zone if Time.zone or
Time.zone_default is set, otherwise converts Date to a Time via
Date#to_time.
# File activesupport/lib/active_support/core_ext/date/zones.rb, line 10
def to_time_in_current_zone
ActiveSupport::Deprecation.warn 'Date#to_time_in_current_zone is deprecated. Use Date#in_time_zone instead', caller
if ::Time.zone
::Time.zone.local(year, month, day)
else
to_time
end
end