diff --git a/src/core.js b/src/core.js index 94ac711..415aa9e 100644 --- a/src/core.js +++ b/src/core.js @@ -1042,6 +1042,8 @@ c3_chart_internal_fn.parseDate = function (date) { parsedDate = date; } else if (typeof date === 'string') { parsedDate = $$.dataTimeFormat($$.config.data_xFormat).parse(date); + } else if (typeof date === 'object') { + parsedDate = new Date(+date); } else if (typeof date === 'number' && !isNaN(date)) { parsedDate = new Date(+date); }