修改设置时间接口权限

Signed-off-by: fangyun <fangyun2@huawei.com>
This commit is contained in:
fangyun 2022-10-27 14:57:02 +08:00
parent 589939dcd3
commit 15fdec5e1b

View File

@ -26,7 +26,7 @@ export interface DeviceSettingsManager {
/** /**
* Sets the system time. * Sets the system time.
* This function can be called by a super administrator. * This function can be called by a super administrator.
* @permission ohos.permission.EDM_MANAGE_DATETIME * @permission ohos.permission.ENTERPRISE_SET_DATETIME
* @param { Want } admin - admin indicates the administrator ability information. * @param { Want } admin - admin indicates the administrator ability information.
* @param { number } time - time indicates rhe target time stamp (ms). * @param { number } time - time indicates rhe target time stamp (ms).
* @returns { Promise<void> } the promise returned by the setDateTime. * @returns { Promise<void> } the promise returned by the setDateTime.