Maintenance Ruby 3.3 gets fixes, but no new features. Switch to Ruby 4.0 →
instance method
CGI::Util#rfc1123_date
rfc1123_date(time)
lib/cgi/util.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.3.0/lib/cgi/util.rb, line 225
def rfc1123_date(time)
time.getgm.strftime("%a, %d %b %Y %T GMT")
end