Note this: https://issues.apache.org/jira/projects/FREEMARKER/issues/FREEMARKER-204 (PR-s linked in the comments).
Attila Kelement made this high quality contribution, which I intend to merge *after* I somehow get over java.time support, and release 2.3.32. Meanwhile, I encourage everyone to review/comment on these PR-s. The gradle build of the 3 branch was also rewritten as part of this.