Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can not use formatDate helper without time part #98

Open
rudrikandharia opened this issue Jun 15, 2022 · 0 comments
Open

Can not use formatDate helper without time part #98

rudrikandharia opened this issue Jun 15, 2022 · 0 comments

Comments

@rudrikandharia
Copy link

Expected Behaviour

Template should be rendered, and test email should be received.

Actual Behaviour

Test email is not received. It works on preview, also on sending test email it says, test email sent successfully, but test email never received

Steps to reproduce it

Email template
<p>{{formatDate recommendation.project.start_date "DD MMM YYYY"}}</p>

Test data
{ "recommendation": { "project": { /* ---------------- */ "start_date": "2022-07-04" } } }

We have to pass whole date time, otherwise its not working with formatDate, e.g. "start_date": "2022-07-04T00:00:00Z"
If this is expected behaviour, then preview should not display it or at least test mail sending should not display success message.
Or it would be great if date without time is allowed on formatDate, assuming time is 00:00:00Z.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant