'Set the requested timezone through sm-set-timezone, an invalid timezone name
will be rejected and we have no further input validation to perform.'

def set(self, key, value):

    if (key == 'name'):
        cmd = 'sm-set-timezone    {0}'.format(value)
        (rc, stdout, stderr) = self.module.run_command(cmd)
        if (rc != 0):
            self.module.fail_json(msg=stderr)
        m = re.match('^\\*    Changed    (to)?    timezone    (to)?    ({0}).*'.format(value), stdout.splitlines()[1])
        if (not (m and (m.groups()[(-1)] == value))):
            self.module.fail_json(msg='Failed    to    set    timezone')
    else:
        self.module.fail_json(msg='{0}    is    not    a    supported    option    on    target    platform'.format(key))
