diff options
author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 1998-02-02 04:49:13 +0000 |
---|---|---|
committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 1998-02-02 04:49:13 +0000 |
commit | de0e5e35ae39a03879d8a954dd6b75654c173cd7 (patch) | |
tree | 6f936b0ed7666e5b4c7009c039775bed1a4e9f32 /lib/parsedate.rb | |
parent | 3293a425afd07c4b004e06e14f1735ca841c1411 (diff) |
__FILE__,__LINE__
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/v1_1r@62 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/parsedate.rb')
-rw-r--r-- | lib/parsedate.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/parsedate.rb b/lib/parsedate.rb index 1c1dda76bc..2ec54b0125 100644 --- a/lib/parsedate.rb +++ b/lib/parsedate.rb @@ -13,8 +13,8 @@ module ParseDate if date.sub!(/\s+(\d+:\d+(:\d+)?)/, ' ') time = $1 end - if date =~ /19(\d\d)/ - year = Integer($1) + if date =~ /(19|20)(\d\d)/ + year = Integer($2) end if date.sub!(/\s*(\d+)\s+(#{MONTHPAT})\S*\s+/i, ' ') dayofmonth = $1.to_i |