lib/yquotes/yahoo.rb in yquotes-0.1.2 vs lib/yquotes/yahoo.rb in yquotes-0.1.4
- old
+ new
@@ -31,10 +31,10 @@
# sanitize date
start_date = get_date(start_date)
end_date = get_date(end_date)
- if start_date and start_date.is_a? Date
+ if start_date
params[:a] = start_date.month - 1
params[:b] = start_date.day
params[:c] = start_date.year
end
\ No newline at end of file