riigikogu-kantselei / api

Public issue tracker for Open data API at the Chancellery of the Riigikogu
https://api.riigikogu.ee/
GNU General Public License v3.0
10 stars 0 forks source link

Dates and times should be in ISO 8601 format #3

Closed moll closed 6 years ago

moll commented 7 years ago

Lo!

Times and dates returned by the API in various responses are currently in a proprietary format: some in milliseconds from possibly Unix epoch (with no clarity how leap seconds and other time peculiarities are handled) and some in the DD.MM.YYYY format.

I propose they all be replaced with extended ISO 8601 formats, which look like the following:

2015-06-18
2015-06-18T13:37:42Z
2015-06-18T13:37:42+02:00

The last for times where the local time is also important. The last SHOULD include a IANA time zone in a separate property if needed. If not, the first two — dates and UTC times — suffice.

moll commented 7 years ago

For the record, the IANA time zone for Estonia is "Europe/Tallinn".

janesmae commented 6 years ago

This should be resolved in the new API demo.

moll commented 6 years ago

Turns out, unfortunately, insufficiently solved. Created https://github.com/riigikogu-kantselei/api/issues/11.