From 2085c418a85fad7c086ad9885977a8b9a1a731d7 Mon Sep 17 00:00:00 2001 From: m0_75226990 Date: Fri, 19 Apr 2024 17:05:32 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=20data=E6=B5=8B=E8=AF=95?= =?UTF-8?q?=E4=BE=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- uni_modules/uts-tests/utssdk/Date.uts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/uni_modules/uts-tests/utssdk/Date.uts b/uni_modules/uts-tests/utssdk/Date.uts index fd80548..aec8c7f 100644 --- a/uni_modules/uts-tests/utssdk/Date.uts +++ b/uni_modules/uts-tests/utssdk/Date.uts @@ -47,6 +47,7 @@ export function testDate() : Result { }) test('toXString', () => { + // #ifdef APP-ANDROID const event = new Date('1995-12-17T03:24:00'); // #ifndef APP-ANDROID expect(event.toString()).toEqual("Sun Dec 17 1995 03:24:00 GMT+0800"); @@ -64,7 +65,7 @@ export function testDate() : Result { expect(event2.toISOString()).toEqual("2014-01-09T14:00:00.000Z"); expect(event2.toJSON()).toEqual("Thu Jan 09 2014"); expect(event2.toDateString()).toEqual("22:00:00 GMT+0800"); - + // #endif }) -- GitLab