解决措施使用 getCurrentTime 来获取系统系统时间和时区。代码示例try { systemDateTime.getCurrentTime(true, (error, time) => { if (error) { console.info(`Failed to get currentTime. message: ${error.message}, code: ${error.code}`); return; } console.info(`Succeeded in getting currentTime : ${time}`); }); } catch(e) { console.info(`Failed to get currentTime. message: ${e.message}, code: ${e.code}`); }参考链接系统时间、时区
解决措施
使用 getCurrentTime 来获取系统系统时间和时区。
代码示例
参考链接
系统时间、时区