From 1fbd97f823c76ce98688a5a1c8c8831167a6d477 Mon Sep 17 00:00:00 2001 From: y00620503 Date: Mon, 25 Aug 2025 22:31:32 +0800 Subject: [PATCH] =?UTF-8?q?[fix]=20=E6=9B=BF=E6=8D=A2loadlibrary=E6=8E=A5?= =?UTF-8?q?=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: y00620503 Change-Id: Ic0abc1441e48144e5b94765502910d8cafdca53d --- framework/js/ani/ets/@ohos.systemDateTime.ets | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/framework/js/ani/ets/@ohos.systemDateTime.ets b/framework/js/ani/ets/@ohos.systemDateTime.ets index 7ba0aab0..d1f7fa79 100644 --- a/framework/js/ani/ets/@ohos.systemDateTime.ets +++ b/framework/js/ani/ets/@ohos.systemDateTime.ets @@ -20,7 +20,7 @@ export default namespace systemDateTime { const SYSTEM_ERROR: number = 401 - loadLibrary("systemdatetime_ani") + loadLibraryWithPermissionCheck("systemdatetime_ani", "@ohos.systemDateTime") export function getCurrentTime(isNano: boolean, callback: AsyncCallback): void { let p1 = taskpool.execute(getTime, isNano) -- Gitee