summaryrefslogtreecommitdiff
path: root/lib/parsedate.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/parsedate.rb')
-rw-r--r--lib/parsedate.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/parsedate.rb b/lib/parsedate.rb
index 1c1dda7..2ec54b0 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