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

add .dateISOString() format #1489

Closed
wants to merge 1 commit into from

Conversation

samchungy
Copy link
Contributor

@samchungy samchungy commented Oct 13, 2022

Adds a validator for what I think is a fairly common and universally accessible format in Javascript: Date.prototype.toISOString().

I've gone down a fairly big rabbit hole of threads but I think this makes sense and is fairly clear. Since the RFC Colin #126 (comment) here raised that .utc() should support milliseconds but not required could lead to some inconsistencies in codebases so I've decided to go a different route. I feel like I would likely want to choose milliseconds or no milliseconds for consistency. Hence I've decided to go with just this simple .dateISOString() which is also documented to be pointing to the Date.prototype.toISOString() function

Happy to be shot down here if we could get some progress.

@netlify
Copy link

netlify bot commented Oct 13, 2022

Deploy Preview for guileless-rolypoly-866f8a ready!

Built without sensitive environment variables

Name Link
🔨 Latest commit c57909d
🔍 Latest deploy log https://app.netlify.com/sites/guileless-rolypoly-866f8a/deploys/6347f34fc8dbd80008bd7ae3
😎 Deploy Preview https://deploy-preview-1489--guileless-rolypoly-866f8a.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

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

Successfully merging this pull request may close these issues.

1 participant