Set library time and date
Sets the time and date of the library.
If the time zone is set as part of the time and date change, it will be ignored. Instead, use the
PATCH/v1/library
{"timezone":<time zone>}
command.
Request syntax
PATCH
/v1/library {"time":<time>}
Sets the library time and date.
Request body parameters
time
(string, optional)-
The current date and time set on the library either manually or using NTP server. Time format is
YYYY-MM-DDThh:mm:ss±hh:mm
. If the time offset is included, it is ignored as the time zone attribute should be updated instead.
Example
> PATCH /v1/library {"time": "2018-09-17T23:02:00"}
HTTP/1.1 201 CREATED
Content-Type: application/json
Content-Length: 0
Error handling
- Returns
422 Unprocessable Entry
if the NTP server is configured.