From ca641b1fec56dca5dc2a05992f2856fd4d4c6e48 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E4=BA=9A=E7=90=AA?= Date: Fri, 31 May 2024 11:22:43 +0800 Subject: [PATCH] =?UTF-8?q?test:=20=E5=B1=8F=E8=94=BD=E7=94=B1=E4=BA=8Esaf?= =?UTF-8?q?ari=2015=E4=B8=8D=E6=94=AF=E6=8C=81=E7=9A=84=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, 3 insertions(+) diff --git a/uni_modules/uts-tests/utssdk/Date.uts b/uni_modules/uts-tests/utssdk/Date.uts index a31ab82..9479963 100644 --- a/uni_modules/uts-tests/utssdk/Date.uts +++ b/uni_modules/uts-tests/utssdk/Date.uts @@ -100,7 +100,10 @@ export function testDate() : Result { // subsequent millisecond (month boundary) expect(new Date(2016, 1, 29, 23, 59, 59, 1000).getDate()).toEqual(1); + // #ifndef WEB + // safari 15不支持此格式的日期字符串 expect(Date.parse("2024-01-09 22:00:00")).toEqual(1704808800000); + // #endif }) test('getDay', () => { -- GitLab