summaryrefslogtreecommitdiff
path: root/lib/optparse/time.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/optparse/time.rb')
-rw-r--r--lib/optparse/time.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/optparse/time.rb b/lib/optparse/time.rb
index 9f677a8..402cadc 100644
--- a/lib/optparse/time.rb
+++ b/lib/optparse/time.rb
@@ -1,7 +1,7 @@
require 'optparse'
require 'time'
-OptionParser.accept(Time) do |s|
+OptionParser.accept(Time) do |s,|
begin
(Time.httpdate(s) rescue Time.parse(s)) if s
rescue