Informatievlaanderen / GIPOD

Generiek Informatie Platform Openbaar Domein
MIT License
9 stars 2 forks source link

Timestamp API is not the same as GUI #302

Closed TomCap1432 closed 3 years ago

TomCap1432 commented 3 years ago

Describe the bug The timestamp of the period of a groundwork in the GUI is not the same as the one in the API call: image

image

Expected behavior We expect them to be the same.

Additional context Problem with winter hour conversion?

Correlation id and request https://private-api.gipod.beta-vlaanderen.be/api/v1/groundworks/10506274

AIV-Bert commented 3 years ago

Hi @TomCap1432,

The API uses UTC time. The website shows the time in local Belgian time.

In Belgium the standard time is Central European Time (UTC+01:00). Belgium observes Summer Time (daylight saving time) from the last Sunday in March (02:00 CET) to the last Sunday in October (03:00 CEST).

Kind regards,

Bert

TomCap1432 commented 3 years ago

Hi @AIV-Bert

So we need to send an updated timestamp in the API call to get the time on 00:00:00 in the GUI?

Thanks in advance, Tom

AIV-Bert commented 3 years ago

Hi @TomCap1432,

All dates in your requests to the API should be in UTC time. It appears that you sent the incorrect time in your original request. Like you suggest, this can be fixed through an update to the API (utc). Or by editing in the UI (local Belgian time).

Kind regards,

Bert

TomCap1432 commented 3 years ago

Ok we are going to ignore timestamp for now because we don't want to add the conversion on our side, will close the incident.