shesha-io / shesha-framework

An open-source Low-Code development framework for .NET developers. Create .NET based business applications with 80% less code.
https://shesha.io
Apache License 2.0
315 stars 50 forks source link

The payload sends the exact format received from the component which differs to what the backend is expecting #1468

Closed hlayisanimazuze closed 3 weeks ago

hlayisanimazuze commented 1 month ago

If a user configure the dateTime format different to what the backend is expecting, the payload sends the exact format received from the component and the backend rejects it.

Steps to reproduce the behavior:

  1. Go to 'https://function-adminportal-test.shesha.dev/dynamic/TestModule/fileTest-table'
  2. Open developer console
  3. Click on 'Default' button
  4. Enter the details and submit
  5. Check the payload
  6. Actual Results: The payload sends the exact format received from the component

Expected behavior Component should display the value in the configured format but store it as a date and send it to the back-end always in the ISO format

image

image

This also impact the dynamic filtering: https://function-adminportal-test.shesha.dev/dynamic/Boxfusion.SheshaFunctionalTests.Common/testform1-create?mode=edit. Select payment date and check the endpoint