Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: support milliseconds in isDate #36

Open
sargunv opened this issue Feb 4, 2023 · 1 comment
Open

Feature request: support milliseconds in isDate #36

sargunv opened this issue Feb 4, 2023 · 1 comment

Comments

@sargunv
Copy link

sargunv commented Feb 4, 2023

I'm trying to parse JSON that contains dates that are just like the ISO8601 handled by this library, except they have milliseconds. I get the following error from Typanion:

Expected to be a valid ISO 8601 date string (got "2023-01-06T02:10:20.118Z")

I'd like either the existing isDate or a new function to support the .118 milliseconds part of the string.

@ztamas83
Copy link

@arcanis I created a quick PR, would highly appreciate if a new release could be created with the added regex. It's not complete as per #39, but would help me a lot in an ongoing project.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants