From 5de24423e69054fee8ebb92250f22453f4d85b4d Mon Sep 17 00:00:00 2001 From: akr Date: Sat, 3 May 2014 18:47:29 +0000 Subject: * lib/time.rb (Time.httpdate): Always return a UTC Time object. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45802 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- lib/time.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/time.rb') diff --git a/lib/time.rb b/lib/time.rb index 9d4e9cccba..3b928a205f 100644 --- a/lib/time.rb +++ b/lib/time.rb @@ -488,7 +488,7 @@ class Time (\d{2}):(\d{2}):(\d{2})\x20 GMT \s*\z/ix =~ date - self.rfc2822(date) + self.rfc2822(date).utc elsif /\A\s* (?:Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday),\x20 (\d\d)-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d\d)\x20 -- cgit v1.2.3