Reproduce:
- Open an embedded form with a date field in tasklist
- In the date input field, remove all potentially existing content
- Submit the form
Expected:
- Request payload for variables contains {value: null, type: "Date"}
Observed:
- Request payload for variables contains {value: "Invalid date", type: "Date"}
Hint:
- Moment converts the null value to the Invalid date string when trying to add timezone information