diff options
author | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-12-23 08:03:52 +0000 |
---|---|---|
committer | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-12-23 08:03:52 +0000 |
commit | 4dd61ce6c7231bc7aa77b51b129f48dbf06862cc (patch) | |
tree | 4771c587061dcc9022e10c61f584fb3d297eb039 /lib/time.rb | |
parent | edfcee2bd203195d08f476f3d3274941c5c2f318 (diff) | |
download | ruby-4dd61ce6c7231bc7aa77b51b129f48dbf06862cc.tar.gz |
* 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
Diffstat (limited to 'lib/time.rb')
-rw-r--r-- | lib/time.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/time.rb b/lib/time.rb index 301d9b372b..0cd9008521 100644 --- a/lib/time.rb +++ b/lib/time.rb @@ -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 |