Skip to main content

REST API Settings - Get server time zones

Get server time zones

Written by Albert
Updated over 2 weeks ago

Get server time zones

GET /frontoffice/api/v3/info/time-zones

Summary

Use this method to retrieve available server time zones.

Request

No request parameters.

Request example

GET /frontoffice/api/v3/info/time-zones HTTP/1.1
Host: {host}
Authorization: Bearer JWT
Accept: */*

Response

In case of success, an array of objects will be returned.

Each object contains the following information:

id string

The time zone identifier.

offset string

The UTC offset, in the following format: HH:MM:SS.

offsetInMinutes integer · int32

The UTC offset in minutes.

shortLabel string

The short label for the time zone.

label string

The display label for the time zone.

Response example — 200: OK

[
{
"id": "Africa/Abidjan",
"offset": "00:00:00",
"offsetInMinutes": 0,
"shortLabel": "Africa/Abidjan",
"label": "(UTC+00:00) Côte d’Ivoire Time"
},
{
"id": "Africa/Algiers",
"offset": "01:00:00",
"offsetInMinutes": 60,
"shortLabel": "Africa/Algiers",
"label": "(UTC+01:00) Central European Time (Algiers)"
},
{
"id": "Africa/Bissau",
"offset": "00:00:00",
"offsetInMinutes": 0,
"shortLabel": "Africa/Bissau",
"label": "(UTC+00:00) Guinea-Bissau Time"
},
...
]

Did this answer your question?