Hey Ory Community,
1. We are trying to set up email template with placeholders for showing current date on Ory self-hosted setup. Tried something like in the jsonnet template:
"This link sent on {{ dateInZone "01 Jan, 2006" (now) "UTC" }} at {{ dateInZone "15
0405" (now) "UTC" }} UTC will expire in {{ .ExpiresInMinutes }} hours on {{ dateInZone "01 Jan, 2006" (now | date_modify "2h") "UTC" }} at {{ dateInZone "15
0405" (now | date_modify "2h") "UTC" }} UTC."
But the following error is seen when the email is triggered:
"message": "template: base64://
truncated: function \"dateInZone\" not defined"
2. We have also setup both courier.templates.recovery.valid.email.body.html and courier.templates.recovery.valid.email.body.plaintext in kratos config but it seems kratos only picks the plaintext template and not the rich html template.
What am I missing in both the cases?
Any help here to resolve /troubleshoot the issue would be greatly appreciated. Thanks.