ruby-changes:33721
From: akr <ko1@a...>
Date: Sun, 4 May 2014 03:47:37 +0900 (JST)
Subject: [ruby-changes:33721] akr:r45802 (trunk): * lib/time.rb (Time.httpdate): Always return a UTC Time object.
akr 2014-05-04 03:47:29 +0900 (Sun, 04 May 2014) New Revision: 45802 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=45802 Log: * lib/time.rb (Time.httpdate): Always return a UTC Time object. Modified files: trunk/ChangeLog trunk/lib/time.rb Index: ChangeLog =================================================================== --- ChangeLog (revision 45801) +++ ChangeLog (revision 45802) @@ -1,3 +1,7 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1 +Sun May 4 03:46:42 2014 Tanaka Akira <akr@f...> + + * lib/time.rb (Time.httpdate): Always return a UTC Time object. + Sun May 4 03:26:39 2014 Tanaka Akira <akr@f...> * lib/time.rb (Time.make_time): Refactored. Index: lib/time.rb =================================================================== --- lib/time.rb (revision 45801) +++ lib/time.rb (revision 45802) @@ -488,7 +488,7 @@ class Time https://github.com/ruby/ruby/blob/trunk/lib/time.rb#L488 (\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 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/