Sterc / FormIt

A dynamic form processing Snippet for MODX Revolution
https://docs.modx.com/current/en/extras/formit
33 stars 58 forks source link

Date filter not working for export with datetime #96

Closed BertKooij closed 8 years ago

BertKooij commented 8 years ago

Today I wanted to export a saved form and discovered that the date filter for export didn't work. I guess that a different time setting is causing this problem.

This is the request for exporting a form: assets/components/formit/connector.php?action=mgr%2Fform%2Fexport&form=form&context_key=&startDate=2016-07-21T00:00:00&endDate=&download=false&limit=0&HTTP_MODAUTH=[...]

After some debugging I found that only the date should be passed in the startDate parameter. Because the filter is automatically applying '00:00:00' for the startDate and '23:59.59' for the endDate.

Passing a javascript date in the export request is causing this problem.

joeke commented 8 years ago

This was fixed with your pr#97. A new FormIt release is on the way, so stay tuned. Thanks!