diff --git a/packages/@aws-cdk/custom-resource-handlers/test/custom-resources/aws-custom-resource/aws-sdk-v3-handler.test.ts b/packages/@aws-cdk/custom-resource-handlers/test/custom-resources/aws-custom-resource/aws-sdk-v3-handler.test.ts index b670a2445b7b5..61ff7fcbd9586 100644 --- a/packages/@aws-cdk/custom-resource-handlers/test/custom-resources/aws-custom-resource/aws-sdk-v3-handler.test.ts +++ b/packages/@aws-cdk/custom-resource-handlers/test/custom-resources/aws-custom-resource/aws-sdk-v3-handler.test.ts @@ -789,8 +789,8 @@ test('automatic Date conversion when necessary', async () => { ReturnData: true, }, ], - StartTime: new Date('2023-01-01').toString(), - EndTime: new Date('2023-01-02').toString(), + StartTime: new Date('2023-01-01'), + EndTime: new Date('2023-01-02'), }, } satisfies AwsSdkCall), },