time_with_datetime_fallback (ActiveSupport::CoreExtensions::Time::Calculations::ClassMethods)

    # File lib/active_support/core_ext/time/calculations.rb, line 44
              def time_with_datetime_fallback(utc_or_local, year, month=1, day=1, hour=0, min=0, sec=0, usec=0)
                ::Time.send(utc_or_local, year, month, day, hour, min, sec, usec)
              rescue
                offset = utc_or_local.to_sym == :local ? ::DateTime.local_offset : 0
                ::DateTime.civil(year, month, day, hour, min, sec, offset)
              end