Skip to content

Commit 402f03d

Browse files
authored
Merge pull request #836 from Codeinwp/bugfix/835
Fix broken chart in iOS and safari browser
2 parents 9d5afd9 + 26cc491 commit 402f03d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

js/render-google.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@ var __visualizer_chart_images = [];
253253
case 'date':
254254
// fall-through.
255255
case 'datetime':
256-
date = new Date(data[i][j]);
256+
date = new Date(Date.parse(data[i][j].replace(/-/g, '/')));
257257
data[i][j] = null;
258258
if (Object.prototype.toString.call(date) === "[object Date]") {
259259
if (!isNaN(date.getTime())) {

0 commit comments

Comments
 (0)