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
This is the controller panel for Smart Panels app
Date variable with value null is submitted as "Invalid Date" in embedded forms
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