* 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
This commit is contained in:
parent
7a39fcc195
commit
5de24423e6
@ -1,3 +1,7 @@
|
||||
Sun May 4 03:46:42 2014 Tanaka Akira <akr@fsij.org>
|
||||
|
||||
* lib/time.rb (Time.httpdate): Always return a UTC Time object.
|
||||
|
||||
Sun May 4 03:26:39 2014 Tanaka Akira <akr@fsij.org>
|
||||
|
||||
* lib/time.rb (Time.make_time): Refactored.
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user