Skip to content

Commit

Permalink
Merge pull request #15 from vijayamaharaja/master
Browse files Browse the repository at this point in the history
Added Fix for parsing Date issue in IE<9 for Timeline chart
  • Loading branch information
tshaddix committed Aug 22, 2013
2 parents 1585b79 + fd68a8f commit f1c89cb
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 2 deletions.
6 changes: 5 additions & 1 deletion oocharts.js
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,11 @@ var oo = (function(document){
* @returns {Date} parsed Date
*/
var _parseDate = function(val){
return new Date(val.substring(0, 4), parseInt(val.substring(5, 7)) - 1, val.substring(8, 10));
val = val.split('-');
var newDate = new Date();
newDate.setFullYear(val[0], val[1]-1, val[2]);
newDate.setHours(0,0,0,0);
return newDate;
};

/*------------------------------------------------------------
Expand Down
13 changes: 12 additions & 1 deletion oocharts.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit f1c89cb

Please sign in to comment.