Skip to content

Fix MembershipRenewal.php to use correct date input format (ISO not US date)

Fix MembershipRenewal.php to use correct date input format from CiviCRM form (ISO not US date format).

This MR resolves issue #2 (closed) by changing the processing of input dates to assume ISO format, which is what CiviCRM currently uses, instead of US date format as was assumed previously.

Before change

When attempting to run report with manually selected date range, report fails with the error One of parameters (value: 2019-09-01) is not of the type Timestamp.

image

After change

Report runs successfully with manually entered date range.

image

Testing

Proved working on CiviCRM installation 5.37.0 (see screenshots above).

Merge request reports