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

Date time format for UTC #102

Closed
MetroMarv opened this issue May 14, 2020 · 2 comments
Closed

Date time format for UTC #102

MetroMarv opened this issue May 14, 2020 · 2 comments

Comments

@MetroMarv
Copy link

In the icarDateTimeType and also in the example URLs we use the format date-time specified in the JSON schema specification for date time properties.

As far as I remember from our discussions we always want to exchange UTC time stamps. So I'd assume that it's sufficient to just exchange the date and the time component and not the offset.

I didn't check possible ways to fix this, but I guess there is a way to define custom formats (I'll check this tomorrow). Or is that format intended?

@cookeac
Copy link
Collaborator

cookeac commented May 17, 2020

@MetroMarv great question and thanks for asking.
The intent, as per the JSON schema specification, is that implementers are specific about time zone. As you note, UTC is also intended, but to make this clear the "Z" suffix or "+00:00" SHOULD be used.

@cookeac
Copy link
Collaborator

cookeac commented Jun 4, 2020

Updated the Wiki with the comment
A note regarding eventDateTime: When specifying dates in icarEventResource and other ICAR entities, date times MUST specify time zone, and SHOULD generally use UTC (using the special "Z" designator as per IS8601 and W3C guidelines).

@cookeac cookeac closed this as completed Jun 4, 2020
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