Skip to content

Timezone History Endpoint

pangw edited this page Sep 19, 2014 · 1 revision

Update User's Timezone

Method: POST

URL: /v1/timezone

Scope: USER_BASIC(0)

Parameter: Timezone History Object in JSON, POST in HTTP body

{
    "timezone_offset": [int32]   //integer of the current local offset,
    "timezone_id": [String]   // The timezone Id (NOT Name) of the local tomezone, example: America/Los_Angeles
}

Return Value: Timezone History Object in JSON, in HTTP Body The server will compute the right offset and name that it stores back. You can use this return value to check if the phone has a correct time settings, say, the phone should be in daylight saving time but not etc..

Clone this wiki locally