class Date

def to_time_in_current_zone

Date#to_time.
Time.zone_default is set, otherwise converts Date to a Time via
Converts Date to a TimeWithZone in the current zone if Time.zone or

*DEPRECATED*: Use +Date#in_time_zone+ instead.
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