Format LocalDateTime in Freemarker Reports Template

I have a ftl template in reports and i want to format a LocalDateTime field.

I tried GitHub - lazee/freemarker-java-8: Library that add java.time support to FreeMarker templates., but with no luck.

As i can see reports addon does not use spring-boot-freemarker.

Any idea?

What i did was

<#assign date = createdDate.withSecond(0).withNano(0)?string?datetime(“yyyy-MM-dd’T’HH:mm”)?string[“dd/MM/yyyy, HH:mm”]>

any better solution is welcome.