YouTrack Standalone 2018.3 Help

Time Zones

The page describes a read-only resource that lets you read the list of time zones that are supported by YouTrack server.

Resource

/api/admin/timeZones

Returned entity

TimeZoneDescriptor. For the description of the entity attributes, see the Supported Fields section.

Supported methods

Supported Fields

This table describes attributes of the returned entity.

  • To receive an attribute in the response from server, specify it explicitly in the fields parameter of a request.

Field

Type

Description

offset

integer

An offset from the UTC/GMT timezone in minutes.

presentation

string

Text presentation of the time zone in the UI.

id

string

A unique entity ID.

Get the List of Time Zones

Request syntax

GET /api/admin/timeZones[?{fields}&{$top}&{$skip}]

Reequest parameters

Parameter

Type

Description

fields

string

A list of TimeZoneDescriptor entity attributes that should be returned in the response. If no fields specified, only entity ID is returned.

$skip

int

Optional. Lets you set a number of returned entities to skip before returning the first one.

$top

int

Optional. Lets you specify the maximum number of entries that are returned in the response.

Sample request

curl -X GET \ 'https://example.myjetbrains.com/youtrack/api/admin/settings/timeZones?fields=id,presentation,offset&$top=3&$skip=5' \ -H 'Accept: application/json' \ -H 'Content-Type: application/json' -H 'cache-control: no-cache'

Sample response body

In a response to such sample request, you receive a complete list of supported time zones with all their attributes:

[ { "presentation": "Greenwich Mean Time (UTC/GMT 0 hours)", "id": "Africa/Bamako", "offset": 0 }, { "presentation": "Western African Time (UTC/GMT +1 hours)", "id": "Africa/Bangui", "offset": 60 }, { "presentation": "Greenwich Mean Time (UTC/GMT 0 hours)", "id": "Africa/Banjul", "offset": 0 } ]
Last modified: 7 March 2019