TableExport icon indicating copy to clipboard operation
TableExport copied to clipboard

Usage of date.js causes errors

Open saslanis opened this issue 6 years ago • 0 comments
trafficstars

If you use the date.js library export does not work because date.js parse method returns null while Date.parse returns NaN on wrong dates.

So just change line 345 from

return !/.*%/.test(v) && !isNaN(Date.parse(v));

to

return !/.*%/.test(v) && !(Date.parse(v) == null);

thanks for the tool

saslanis avatar May 06 '19 09:05 saslanis