lib/watir-webdriver/cookies.rb in watir-webdriver-0.5.3 vs lib/watir-webdriver/cookies.rb in watir-webdriver-0.5.4
- old
+ new
@@ -26,12 +26,12 @@
@control.delete_all_cookies
end
private
- def to_time(dt)
- if dt.respond_to?(:to_time)
- dt.to_time
+ def to_time(t)
+ if t.respond_to?(:to_time)
+ t.to_time
else
Time.local t.year, t.month, t.day, t.hour, t.min, t.sec
end
end
end