Documentation · API reference
GET/api/v1/zones

Every time zone a site can be in

Every time zone a site can be in, with its offset from UTC now, for the time zone picker (doc/polish.md, C1). Nobody signs in to read it.

The answer

Status 200

A list of ZoneView A time zone a site can be in, for the time zone picker (doc/polish.md, C1): its IANA name, the place and the region it is named for, and its offset from UTC now.

city
stringneeded`Copenhagen`.
name
stringneeded`Europe/Copenhagen`.
offset
stringneeded`UTC+2`, `UTC+5:30`, `UTC−3`.
region
stringneeded`Europe`; empty for UTC.

Asking

With your token from Settings
curl https://tidekeeper.eu/api/v1/zones \
    -H "Authorization: Bearer $TIDEKEEPER_TOKEN"
With your token from Settings
const answer = await fetch("https://tidekeeper.eu/api/v1/zones", {
  headers: {
    Authorization: `Bearer ${process.env.TIDEKEEPER_TOKEN}`,
  },
}).then((r) => r.json());