Skip to content

Can not use formatDate helper without time part #98

Description

@rudrikandharia

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions