Improved the renderers encoding by using the template encoding or encoding specified in a property

This commit is contained in:
Erik C. Thauvin 2023-03-25 15:46:05 -07:00
parent 538a8d35ae
commit 9738ecb0ba
34 changed files with 197 additions and 61 deletions

View file

@ -42,6 +42,6 @@ public class DateTimeRfc2822 implements ValueRenderer {
*/
@Override
public String render(Template template, String valueId, String differentiator) {
return ZonedDateTime.now().format(RenderUtils.RFC_2822_FORMATTER);
return template.getEncoder().encode(ZonedDateTime.now().format(RenderUtils.RFC_2822_FORMATTER));
}
}