When I request GET /api/collections I got back a resource with a "publishDate":"2023-05-01T23:34:24". This doesn't specify a timezone offset from UTC (or a "Z" to indicate UTC). It's unclear when to interpret this datetime.
To Reproduce
Steps to reproduce the behavior:
Turn on OSMT
Create at least one collection, and publish it.
Request GET /api/collections
Observe no TZ indicator on publishDate, and other dates.
Expected behavior
Server should know what time zone it's running in. Datetimes should be serialized in UTC with a "Z" timezone identifier. Best to save them to the database in UTC if possible, but translation to UTC at API request time is OK too.
Describe the bug
When I request
GET /api/collections
I got back a resource with a"publishDate":"2023-05-01T23:34:24"
. This doesn't specify a timezone offset from UTC (or a "Z" to indicate UTC). It's unclear when to interpret this datetime.To Reproduce
Steps to reproduce the behavior:
GET /api/collections
Expected behavior
Server should know what time zone it's running in. Datetimes should be serialized in UTC with a "Z" timezone identifier. Best to save them to the database in UTC if possible, but translation to UTC at API request time is OK too.