Permalink
Browse files

make cookies API to work for ruby 1.8.7 too

  • Loading branch information...
1 parent 938d28a commit 419ceef92f2936a7361d4a185f17c2993d03cc71 @jarmo jarmo committed Mar 17, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 watir/lib/watir/cookies.rb
@@ -19,7 +19,7 @@ def add name, value, options={}
options = options.map do |option|
k, v = option
if k == :expires
- "#{k}=#{v.gmtime.strftime("%a, %-d %b %Y %H:%M:%S UTC")}"
+ "#{k}=#{v.gmtime.strftime("%a, %d %b %Y %H:%M:%S UTC")}"
elsif k == :secure
"secure" if v
else

0 comments on commit 419ceef

Please sign in to comment.