POST /v1/core/timezone-convert
Time zone converter
Daylight saving handled properly, including the dates it changes on.
Convert a time between zones now No key, no code — 1 credit either way.
curl -X POST "$DOATHING_API/v1/core/timezone-convert" \
-H "x-api-key: $DOATHING_KEY" \
-H "content-type: application/json" \
-d '{"timestamp": "2026-06-01T12:00:00", "from": "UTC", "to": "Europe/London"}'
Daylight saving handled properly, including the dates it changes on.
Convert a timestamp between IANA time zones, reporting UTC offset and DST state.
Response
The result carries your remaining balance alongside it, so you can track spend without a second call.
{
"converted": "2026-06-01T13:00:00+01:00",
"utc_offset": "+01:00",
"abbreviation": "BST",
"dst": true,
"request_id": "37f01edb-0163-42a1-ac51-0acaef979800",
"credits_remaining": 96
}
Cost
1 credit per call, whether it is run from the site or from the API — the credential differs, the price does not. A new account starts with 20 credits.
A rejected request still costs a credit: the authorizer decrements before the tool validates. A call rejected for a missing or invalid key is free.
Parameters
Generated from the endpoint’s own validation, so this is exactly what it accepts. A body field goes at the top level; an option goes inside options.
| Name | In | Type | Default | Notes |
|---|---|---|---|---|
| timestamp * | body | string (ISO 8601) | — | ISO 8601, for example 2026-06-01T12:00:00. |
| from * | body | string | — | An IANA time zone, such as UTC or America/New_York. e.g. UTC, Europe/London, Europe/Dublin, Europe/Paris |
| to * | body | string | — | An IANA time zone, such as Europe/London. e.g. UTC, Europe/London, Europe/Dublin, Europe/Paris |