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
When creating an instance of an MockDate with i.e. "10/24/2023, 1:59:00 AM" it throws an error: AssertionError: Unhandled date format passed to MockDate constructor: 10/24/2023, 1:59:00 AM.
Looks probably the same as #68 - that's generally the kind of bug this library is good at helping catch - that looks like a format which will parse differently depending on the browser/Node version and the locale of the computer running the test (in many non-US/English locales, a browser is going to try to parse it as DD/MM/YYYY, I think?).
When creating an instance of an MockDate with i.e.
"10/24/2023, 1:59:00 AM"
it throws an error:AssertionError: Unhandled date format passed to MockDate constructor: 10/24/2023, 1:59:00 AM
.It occurs while running tests using the current version of the Mantine-Framework and the error is been thrown at this line: https://github.com/mantinedev/mantine/blob/master/packages/@mantine/dates/src/components/DateTimePicker/DateTimePicker.tsx#L157
I guess the origin of this string is
toLocaleString
.When using this pattern in the actual Date-constructor in Chrome, Firefox or Node.js it doesn't throw an error.
The text was updated successfully, but these errors were encountered: