You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The reason for this turns out to be an issue with the converter transforming the string values into numbers before plugging them into the conversion for a Date() object, in cases where the value for a month or day is less than 10.
Safari is expecting values of 'YYYY-MM-DD' with leading zeros when using new Date('2012-07-24'). Without leading zeros (e.g. new Date('2012-7-24')), a less than 10 value on month or day passes in Firefox but generates an error in Safari.
How to reproduce:
While using Safari, perform a conversion using:
OrcDate.convert('2012-07-24', 'YYYY-MM-DD', 'Date');
The object returned will be an "Invalid Date".
The text was updated successfully, but these errors were encountered: