bunq / doc

The bunq API documentation
https://doc.bunq.com
MIT License
30 stars 19 forks source link

Datetime timezones #153

Open jleclanche opened 4 years ago

jleclanche commented 4 years ago

https://beta.doc.bunq.com/basics/api-conventions#time-formats

We use the UTC date and time standard and so expect you to use this format YYYY-MM-DD hh:mm:ss.ssssss . The meaning of the letters is defined in ISO 8601.

This is unclear on what the timezone is. I suspect what it's trying to say is that:

  1. Bunq uses the ISO8601 datetime format standard
  2. All datetimes are in the UTC timezone

But it's ambiguous. Furthermore the API could instead be sending Z-suffixed datetimes to make it completely unambiguous what timezone the datetimes are in ("2019-12-26 05:43:34.091865Z" instead of 2019-12-26 05:43:34.091865).