From f0a08ae054c2112c7394b760096c7ac3c6bf1d5f Mon Sep 17 00:00:00 2001 From: Matt Chan Date: Mon, 16 Jun 2014 20:25:53 -0700 Subject: [PATCH] Fix bug with replacing end date in dividendhistory --- yahoo/finance/yahoo.finance.dividendhistory.xml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/yahoo/finance/yahoo.finance.dividendhistory.xml b/yahoo/finance/yahoo.finance.dividendhistory.xml index ed3fdce4..b68b7980 100644 --- a/yahoo/finance/yahoo.finance.dividendhistory.xml +++ b/yahoo/finance/yahoo.finance.dividendhistory.xml @@ -38,9 +38,9 @@ encodedUrl = encodedUrl.replace('a=1','a=' + getMonth(startDate)); encodedUrl = encodedUrl.replace('b=1','b=' + getDay(startDate)); encodedUrl = encodedUrl.replace('c=2010','c=' + getYear(startDate)); - encodedUrl = encodedUrl.replace('d=1','d=' + getMonth(endDate)); - encodedUrl = encodedUrl.replace('e=30','e=' + getDay(endDate)); - encodedUrl = encodedUrl.replace('f=2010','f=' + getYear(endDate)); + encodedUrl = encodedUrl.replace('d=12','d=' + getMonth(endDate)); + encodedUrl = encodedUrl.replace('e=31','e=' + getDay(endDate)); + encodedUrl = encodedUrl.replace('f=2014','f=' + getYear(endDate)); var results = y.query("select * from csv(0,1) where url=@url",{url:encodedUrl}); var colNames='';