YYYY-MM-DDThh:mm:ssZ in UTC time.
the time zone offset specified as “Z” (for UTC) or either “+” or “-” followed by a time expression hh:mm
currently, the json-schema spec describes date-time format as:YYYY-MM-DDThh:mm:ssZ in UTC time.es5[1] is a little more loose and describes "Z" asthe time zone offset specified as “Z” (for UTC) or either “+” or “-” followed by a time expression hh:mmi was wondering if there would be support for changing the description for date-time format to allow for this format.
Hagen, I think this is a very weak reason to omit timezones from the spec.
I'd support this addition wholeheartedly and I agree that the wording
of the spec should be changed here to guide implementers in the right
direction. Omitting time-zone offsets might seem like a simplification
but it's likely to make life unnecessarily difficult for those that
need to represent a variety of date-time values in different
time-zones. Z is a useful shortcut, but offsets of the form +/hh:mm
are essential.
The simplified ISO 8601 representation described in es5 looks perfect.
--
You received this message because you are subscribed to the Google Groups "JSON Schema" group.
To view this discussion on the web visit https://groups.google.com/d/msg/json-schema/-/kfbuaEywA18J.
To post to this group, send email to json-...@googlegroups.com.
To unsubscribe from this group, send email to json-schema...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/json-schema?hl=en.