From cfdbc90bfda678a55f8e9bfa664e54f781f660a8 Mon Sep 17 00:00:00 2001 From: duqingquan Date: Thu, 11 Jan 2024 15:30:37 +0800 Subject: [PATCH] =?UTF-8?q?Date=20=E6=96=B0=E5=A2=9E=202024-01-09=2022:00:?= =?UTF-8?q?00=20=E6=A0=BC=E5=BC=8F=E7=9A=84=E6=B5=8B=E8=AF=95=E7=A4=BA?= =?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 | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/uni_modules/uts-tests/utssdk/Date.uts b/uni_modules/uts-tests/utssdk/Date.uts index 5df20cd..5ee04d6 100644 --- a/uni_modules/uts-tests/utssdk/Date.uts +++ b/uni_modules/uts-tests/utssdk/Date.uts @@ -66,7 +66,10 @@ export function testDate() : Result { // final millisecond (month boundary) expect(new Date(2016, 1, 29, 23, 59, 59, 999).getDate()).toEqual(29); // subsequent millisecond (month boundary) - expect(new Date(2016, 1, 29, 23, 59, 59, 1000).getDate()).toEqual(1); + expect(new Date(2016, 1, 29, 23, 59, 59, 1000).getDate()).toEqual(1); + + expect(Date.parse("2024-01-09 22:00:00")).toEqual(1704808800000); + }) test('getDay', () => { const birthday = new Date('August 19, 1975 23:15:30'); -- GitLab