-
-
Notifications
You must be signed in to change notification settings - Fork 155
Open
Labels
Description
Hey there!
I have two email templates A and B. A is indented for an international audience whereas B is targeted at a German audience.
Both templates provide a placeholder to set the date of the generated email. The backend represents the timestamp using chrono::DateTime<Utc>. This results in strings such as 2023-10-11T22:11:27.902255300Z whereas strings such as 11.10.2023 or 10/11/2023 are desired. Strings such as 11th March 23 would also be a possibility.
My current workaround is to pass a localized string, which requires the backend to have knowledge of the preferred format.
Is it possible to control the serialization process (with
handlebars or the rhai extensions) to achieve a desired outcome?
Thanks in advance!