Set and Get Time and Time Zone Settings of Device
# Set and Get Time and Time Zone Settings of Device
# Set Time and Time Zone Settings
Path:
/api/newrtc
Method: PUT
Content-type: application/json; charset=utf-8
API Description: This can be used to set the time and time zone of the device, and to enable/disable the function of synchronizing time automatically.
Request
Name | Type | Example | Description |
---|---|---|---|
time | String | 2022-07-19 15:14:11 | Current time of the device |
timezoneId | String | Asia/Shanghai | Time zone ID |
timezone | float | 8 | Time zone |
isautotime | int | 0 | Auto time synchronization; 1-Enable, 0-Disable |
Example
{
"time": "2022-07-19 15:14:11",
"timezoneId": "Asia/Shanghai",
"timezone": 8.0,
"isautotime": 1
}
# Get Time and Time Zone Settings of Device
Path:
/api/newrtc.json
Method: GET
Content-type: application/json; charset=utf-8
API Description: This can be used to get the time and time zone settings of the device, and to confirm whether the function of auto time synchronization is enabled.
Response
Name | Type | Example | Description |
---|---|---|---|
time | String | 2022-07-19 15:14:11 | Current time of the device |
timezoneId | String | Asia/Shanghai | Time zone ID |
timezone | float | 8 | Time zone |
isautotime | int | 0 | Auto time synchronization; 1-Enable, 0-Disable |
Example
{
"time": "2022-07-19 15:14:11",
"timezoneId": "Asia/Shanghai",
"timezone": 8.0,
"isautotime": 1
}