From caefc89249a128acce54f001d4776d26b607e6bc Mon Sep 17 00:00:00 2001 From: duqingquan Date: Fri, 19 Apr 2024 20:13:56 +0800 Subject: [PATCH] =?UTF-8?q?Date.toXString=20=E7=A4=BA=E4=BE=8B=E8=B0=83?= =?UTF-8?q?=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- uni_modules/uts-tests/utssdk/Date.uts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/uni_modules/uts-tests/utssdk/Date.uts b/uni_modules/uts-tests/utssdk/Date.uts index f6b5870..836fc1b 100644 --- a/uni_modules/uts-tests/utssdk/Date.uts +++ b/uni_modules/uts-tests/utssdk/Date.uts @@ -57,10 +57,10 @@ export function testDate() : Result { const event2 = new Date('2014-01-09 22:00:00'); expect(event2.toString()).toEqual("Thu Jan 09 2014 22:00:00 GMT+0800"); - expect(event2.toTimeString()).toEqual("2014-01-09T14:00:00.000Z"); + expect(event2.toTimeString()).toEqual("22:00:00 GMT+0800"); 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"); + expect(event2.toJSON()).toEqual("2014-01-09T14:00:00.000Z"); + expect(event2.toDateString()).toEqual("Thu Jan 09 2014"); // #endif }) -- GitLab