# Timezone

## API actions

API path: `panel/timezone`.

### list

Gets information about all supported timezones for the specified locale. Does not require authorization.

#### Parameters

| name   | description                                  | type                                                                           |
| ------ | -------------------------------------------- | ------------------------------------------------------------------------------ |
| locale | Locale code to set language of descriptions. | [enum](https://www.navixy.com/docs/navixy-api/user-api/backend-api#data-types) |

#### Examples

{% tabs %}
{% tab title="cURL" %}

```sh
curl -X POST 'https://api.eu.navixy.com/v2/panel/timezone/list' \
    -H 'Content-Type: application/json' \
    -d '{"locale": "en"}'
```

{% endtab %}

{% tab title="HTTP GET" %}

```http
https://api.eu.navixy.com/v2/panel/timezone/list?locale=en
```

{% endtab %}
{% endtabs %}

#### Response

```json
{
  "success": true,
  "list": [
    {
      "zone_id": "America/Tijuana",
      "description": "Tijuana",
      "base_offset": -8.0,
      "dst_offset": 1,
      "country_code": "MX",
      "alt_ids": [
        "America/Ensenada",
        "America/Santa_Isabel"
      ]
    }
  ]
}
```

* `zone_id` - string. Timezone ID, which is used throughout the API.
* `description` - string. Localized description of the timezone.
* `description` - int. Base timezone offset in hours, e.g. 1 for London. May be negative.
* `description` - int. DST offset in hours. `0` if no DST rules for this timezone.
* `description` - string. ISO country code for the timezone.
* `alt_ids` - string array. List of string, optional, alternative timezone IDs.

#### Errors

[General](https://www.navixy.com/docs/navixy-api/user-api/backend-api/errors#error-codes) types only.
