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

ISO 8601 date-times do not include UTC offset #42

Closed
chris-baynes opened this issue Aug 21, 2012 · 3 comments
Closed

ISO 8601 date-times do not include UTC offset #42

chris-baynes opened this issue Aug 21, 2012 · 3 comments

Comments

@chris-baynes
Copy link
Contributor

The validator for date-time only allows for a datetime in UTC, however the ISO 8601 standard allows for a UTC offset to be given.
Example datetime allowed now:

2012-08-20T00:00:00Z

datetime not allowed in json-schema but is allowed by ISO 8601:

2012-08-20T00:00:00+02:00

I see from the json schema you reference that the former is the recommended datetime format, but doesn't that mean the latter should still be allowed?

@hoxworth
Copy link
Contributor

You are correct. I'll work on altering the date format validator to accept this and put it in a future version.

@chris-baynes
Copy link
Contributor Author

I've submitted a pull request since I already had to make these changes locally.

@hoxworth
Copy link
Contributor

Merged.

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