fixthestatusquo / proca-server

Proca server, SDKs and services
https://proca.app
5 stars 3 forks source link

Change date format for email templates #230

Open 1v4n4 opened 1 year ago

1v4n4 commented 1 year ago

Email template variable {{createdAt}} is sent in ISO8601. image

It would be better to have user-friendlier format. If localization is possible, it should be in the language of the widget (actionPage.locale). If no localization, in some ddmmyyyy (time?) variant.

The relevant code might be here https://github.com/fixthestatusquo/proca-server/blob/main/proca/lib/proca/service/email_merge.ex.

We should have createdAt on this list https://github.com/fixthestatusquo/proca-server/blob/c79a8c05c7aa2fb11112af7502e3628c9d0d2a75/proca/lib/proca/service/email_merge.ex#L7