Closed jeroen closed 11 years ago
Yes, this is a good idea. For Open mHealth we are using the W3C version of ISO8601 dates.
Ah cool! I was not aware that this existed. That seems like a nice subset indeed. ISO8601 is way to general.
Out of curiosity, what APIs are you attempting to interact with using JS?
Mobility stuff for the OMH reporting.
Were you trying to upload data or just read?
Just reading. I was using mobility/dates/read
On Fri, Sep 7, 2012 at 11:19 AM, Joshua Selsky notifications@github.comwrote:
Were you trying to upload data or just read?
— Reply to this email directly or view it on GitHubhttps://github.com/cens/ohmageServer/issues/407#issuecomment-8373979.
@joshuaselsky Is this commit sufficient to close this issue?
We are only using this formatter for omh/read, correct? I think we should use it across all ohmage APIs, but that will probably break backwards compatibility.
We don't want to break backwards compatibility though.. It will make it much harder to upgrade server during deployment.
On Mon, Oct 22, 2012 at 11:03 AM, Joshua Selsky notifications@github.comwrote:
We are only using this formatter for omh/read, correct? I think we should use it across all ohmage APIs, but that will probably break backwards compatibility.
— Reply to this email directly or view it on GitHubhttps://github.com/cens/ohmageServer/issues/407#issuecomment-9674089.
I agree that we don't want to break backwards compatibility until the next major version, so it seems like this cannot be fully implemented in any version 2.x. This is done for observers and Open mHealth APIs. Should we just move it to 3.0?
Yup. It was more of a question on my part whether this would break backwards compatibility. Either way, we would need to test and it's not a priority for 2.14.
Handled by OmH.
ISO8601 specifies a lot of different ways of formatting dates and timestamps. We should probably be a bit more specific what format we really expect.
For example, javascript by default uses this format:
However ohmage doesn't seem to like this at all.
Apparently, strickly speaking, ISO8601 is not a standard for formatting dates in itself; it is a standard for describing formats. Also see the last reply on this topic on SO.