br-g / openf1

OpenF1 API - Real-time and historical Formula 1 data
MIT License
322 stars 15 forks source link

Wrong date ISO format #32

Closed VonSerpe closed 4 months ago

VonSerpe commented 6 months ago

Hi all, all API responses have the wrong date format which does not comply with the ISO 8601 standard.

Now the dates are all without UTC information. If no UTC relation information is given with a time representation, the time is assumed to be in local time. Since dates are in UTC format, a Z should be added at the end of the time.

2024-02-29T11:30:00 would be 2024-02-29T11:30:00Z

Thanks

br-g commented 4 months ago

Hello,

Thank you for reporting this! Dates now all have timezone information.