OpenRefine icon indicating copy to clipboard operation
OpenRefine copied to clipboard

fix #6534

Open GittyHarsha opened this issue 1 year ago • 0 comments

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 toISOString method on a new Date object constructed using the parsed date value.

image

GittyHarsha avatar Aug 27 '24 08:08 GittyHarsha