OpenRefine
OpenRefine copied to clipboard
fix #6534
Fixes #6534
Issue
The date entered in the cell is parsed using the Date.parse() method which returns a timestamp. This timestamp is converted to a formatted date string using toString("YYYY-MM-DDTHH:mm:ss.sssZ").
but concerning the below link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Errors/Bad_radix
The toString method has an optional parameter radix, which should be an integer between 2 and 36. But here the radix is given a string as an argument.
Changes proposed in this pull request:
- use
toISOStringmethod on a new Date object constructed using the parsed date value.