REST API
Time and time zones
The REST API exchanges times as ISO 8601 strings. This article explains how sedisto reads the times you send, in particular times without an offset, and in which form times come back.
Times in responses
Section titled “Times in responses”Every time in a response is in UTC, with a Z and milliseconds:
"requested_at": "2026-10-18T08:21:44.512Z"Convert to local time on your side. Each site returns its time zone in time_zone (for example Berlin) and the IANA name in time_zone_name (for example Europe/Berlin).
Times you send
Section titled “Times you send”A time with an offset or a Z names one moment, and sedisto stores exactly that moment:
"starts_at": "2026-11-01T00:00:00+01:00"This is the safest form, and the one to prefer.
For starts_at and ends_at on rental agreements and tenant memberships, sedisto also accepts times without an offset and reads them in the local time of the site:
| You send | sedisto stores, for a site in Europe/Berlin |
|---|---|
2026-11-01T08:00:00 |
08:00 local time on 1 November |
2026-11-01 as starts_at |
00:00:00 local time on 1 November |
2026-11-30 as ends_at |
23:59:59 local time on 30 November |
A plain date therefore covers the whole local day. A booking from 2026-11-01 to 2026-11-30 grants access from the first minute of the first day to the last second of the last day.
For a rental agreement, the site is the site of its unit. For a tenant membership, it is the site of the rental agreement the membership is tied to, or else the one time zone shared by all sites the tenant rents at. If the tenant rents at sites in different time zones and the membership is not tied to one agreement, a time without an offset is read as UTC.
Filters and aggregation
Section titled “Filters and aggregation”In filters such as q[requested_at_gteq], always send a time with an offset. The rule for local times above applies only to starts_at and ends_at when writing.
When you group by time with the /aggregate routes, buckets are cut in the site’s time zone if the request reaches exactly one time zone, and in UTC otherwise. The response names the zone it used. See Aggregation.