system_clock.save
Description
Save system clock settings.
Arguments
name | Required | value type | default value |
---|---|---|---|
timezone | no | String | UTC |
set_method | yes | manual or ntp | none |
ntp_server | yes, if set_method=ntp | domain name or IP address | |
manual_time | yes, if set_method=manual | Date string formatted: MM/DD/YYYY HH:MM PM | none |
Example Requests & Responses
Example One
Request
Save system clock settings, enabling ntp.
{
    'method' => 'system_clock.save',
    'parameters' => {
          'timezone' => 'America/Chicago',
          'set_method' => 'ntp',
          'ntp_server' => '0.digium.pool.ntp.org'
        } |
Response
{
          'result' => 'success'
 } |
Or
{
          'result' => 'error',
          'error' => 'An Error String',
          'error_key' => 'AN_ERROR_LANGUAGE_KEY',
 } |
Example Two
Request
Save system clock settings manually.
Response
Or