mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* lib/time.rb (Time.httpdate): use Time.utc for
"day-of-week, dd-mon-yy HH::MM:SS GMT" format. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14516 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
edfcee2bd2
commit
4dd61ce6c7
2 changed files with 6 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
|||
Sun Dec 23 17:00:23 2007 Tanaka Akira <akr@fsij.org>
|
||||
|
||||
* lib/time.rb (Time.httpdate): use Time.utc for
|
||||
"day-of-week, dd-mon-yy HH::MM:SS GMT" format.
|
||||
|
||||
Sun Dec 23 16:12:40 2007 Eric Hodel <drbrain@segment7.net>
|
||||
|
||||
* lib/rdoc: Fix 1.9 warnings.
|
||||
|
|
|
@ -338,7 +338,7 @@ class Time
|
|||
(\d\d):(\d\d):(\d\d)\x20
|
||||
GMT
|
||||
\s*\z/ix =~ date
|
||||
self.parse(date)
|
||||
Time.utc(1900+$3.to_i, $2, $1.to_i, $4.to_i, $5.to_i, $6.to_i)
|
||||
elsif /\A\s*
|
||||
(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun)\x20
|
||||
(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\x20
|
||||
|
|
Loading…
Add table
Reference in a new issue