elexon-data / insights-issues

This repository serves as a centralised location for tracking and managing issues reported on the Insights Solution.
MIT License
4 stars 0 forks source link

Inconsistant Date format - Datasets - Metadata Latest - Datetime format issue #25

Closed pyoxall67 closed 7 months ago

pyoxall67 commented 8 months ago

Datasets - Metadata Latest API documentation | Insights Solution (elexon.co.uk) According to API main documentation datetime should be written using RFC3339 format. Also, in bottom section of attachment, date time example is written using RFC3339 format, with 3 places for second fragments and ending with Z mark.

But when testing the API or calling the API datetime format returned doesn't have the Z mark. Which Time zone is used for this report and which time format is applicable for it? pic1

beccar97 commented 8 months ago

Hi @pyoxall67, thank you for raising this. The datetime here is in the UTC timezone, and the formatting should reflect this. I've raised a change to get this fixed, and it should be resolved in the live system in the coming weeks.

beccar97 commented 7 months ago

This has now been fixed, and results returned from this endpoint are correctly formatted using RFC3339 and showing the UTC timezone