class ActiveSupport::TimeWithZone

def self.name

Report class name as 'Time' to thwart type checking.
def self.name
  ActiveSupport::Deprecation.warn(<<~EOM)
    ActiveSupport::TimeWithZone.name has been deprecated and
    from Rails 7.1 will use the default Ruby implementation.
    You can set `config.active_support.remove_deprecated_time_with_zone_name = true`
    to enable the new behavior now.
  EOM
  "Time"
end