activitystreams icon indicating copy to clipboard operation
activitystreams copied to clipboard

Example 146: Missing `Z` in startTime

Open cjslep opened this issue 7 years ago • 4 comments

Please Indicate One:

  • [ ] Editorial
  • [ ] Question
  • [X] Feedback
  • [ ] Blocking Issue
  • [X] Non-Blocking Issue

Please Describe the Issue:

https://www.w3.org/TR/activitystreams-core/#dates states:

An uppercase "T" character must be used to separate date and time, and an uppercase "Z" character must be used in the absence of a numeric time zone offset.

However, in https://www.w3.org/TR/activitystreams-vocabulary Example 146 is:

{
  "@context": "https://www.w3.org/ns/activitystreams",
  "summary": "Sally became a friend of Matt",
  "type": "Create",
  "actor": "http://sally.example.org",
  "object": {
    "type": "Relationship",
    "subject": "http://sally.example.org",
    "relationship": "http://purl.org/vocab/relationship/friendOf",
    "object": "http://matt.example.org",
    "startTime": "2015-04-21T12:34:56"
  }
}

Which is missing both the numeric time zone offset and the Z.

cjslep avatar Jan 02 '18 23:01 cjslep

just btw - in my personal JSON schemas it fails as well. To test :

"xsd$dateTime": {
  "type": "string",
  "format": "date-time",
  "pattern": "^(-?(?:[1-9][0-9]*)?[0-9]{4})-(1[0-2]|0[1-9])-(3[01]|0[1-9]|[12][0-9])T(2[0-3]|[01][0-9]):([0-5][0-9]):([0-5][0-9])(\\.[0-9]+)?(Z|[+-](?:2[0-3]|[01][0-9]):[0-5][0-9])?$"
}

sebilasse avatar Jan 19 '18 09:01 sebilasse

This is an error; we should add it to our ERRATA

evanp avatar Mar 28 '18 03:03 evanp

I added a PR to add an erratum for this error. We'll consider it at a future CG meeting, and if approved, it will go into the ERRATA.md document and also the editor's draft.

evanp avatar Mar 13 '24 16:03 evanp