Custom Date Tokens do not resolve if the field has no time part
Overview
Custom Date Tokens do not resolve if the field has no time part
Reproduction steps
- apply https://github.com/civicrm/civicrm-core/pull/21666 to support participant tokens
- send a scheduled reminder with a date field and some other tokens
Current behaviour
The date field does not resolve, but not only that. It caused no token at all to render.
Expected behaviour
A rendered date field would be expected of the custom date field token.
Environment information
Current master (5.43) with https://github.com/civicrm/civicrm-core/pull/21666
Comments
When in the backend I change the date field to also have a time part, the token starts rendering.