Set time zone
1. API Description
This API is used to set time zone.
Request mode: POST [ip]/api/system/timezone-set
| Administrator Rights | Logged-in |
|---|---|
| Yes | Yes |
2. Input Parameters
| Name | Required | Type | Description |
|---|---|---|---|
| zonename | Yes | String | The time zone name |
3. Output Parameters
| Name | Type | Description |
|---|---|---|
| status | Int | Status code |
| message | String | Status description |
4. Example
Setting time zone.
Input Example
{
"zonename": "Asia/Shanghai"
}
Output Example
{
"status": 0
}
5. Error Code
The following only lists the error codes related to the API business logic. For other error codes, see Common Error Codes.
| Status | Definition | Description |
|---|---|---|
| 7 | MW_STATUS_INVALID_ARG | Missing required parameters |
| 16 | MW_STATUS_NOT_EXIST | Time zone does not exist |