-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Closed
Labels
good first issueGood for newcomersGood for newcomers
Description
Provide a general summary of the issue here
parseDate(new Date().toISOString())
throws
Uncaught Error: Invalid ISO 8601 date string: <isostring>
It should use a more robust regex.
🤔 Expected Behavior?
To parse the provided valid ISO 8601 string;
😯 Current Behavior
Throws.
💁 Possible Solution
Tweak the regex to accept valid ISO 8601 strings;
🔦 Context
No response
🖥️ Steps to Reproduce
import { parseDate } from "@internationalized/date";
Try to parse a valid ISO 8601 string, eg.:
parseDate(new Date().toISOString())
Version
3.8.2
What browsers are you seeing the problem on?
Microsoft Edge
If other, please specify.
No response
What operating system are you using?
Windows 11
🧢 Your Company/Team
No response
🕷 Tracking Issue
No response
Metadata
Metadata
Assignees
Labels
good first issueGood for newcomersGood for newcomers