Converting JavaScript to Groovy/Java
问题 I have some javascript code (Postman) that needs to be converted for use in another API test tool (Katalon). I am getting errors while updating the date with the timezone difference. The error occurs when trying to update the expectedDate with the TZ difference. Original Javascript //Postman - Validate Date /*var jsonData = pm.response.json(); var expectedDate = new Date(); var firstDate = new Date(jsonData[0].Date); var locationOffset = Number(pm.environment.get("locationOffset")); var