Some datepicker fields only allow choosing dates far in the future
Steps to replicate:
- Send a mass SMS. If you're using a buildkit build, you'll need to install an SMS extension and define an SMS provider.
- On the "Schedule" screen, try to pick a schedule date.
Expected Behavior: Years shown are 2020 and above.
Actual behavior: Dates are several thousand years in the future.
I can see that
CRM_SMS_Form_Schedule sets the
time(), which is a Unix timestamp - and Matt's PR runs that through
strtotime, which munges it into a different Unix timestamp. If Matt could give insight as to whether this should get fixed at the form level or in
CRM_Core_Form I could potentially work on a fix.