Daniel,
That would be great.
Even without the built-ins, just avoiding all the java.util.Date bugs
will be worth it.
Context:
For the OptaPlanner project (also Apache License), we're using
Freemarker for:
- rendering the website optaplanner.org using JBake + Freemarker
- the optaplanner-benchmark toolkit, using Freemarker to render the
benchmark report html
Freemarker is fast and powerful, our favorite templating engine for Java.
With kind regards,
Geoffrey De Smet
On 02/10/2021 20:24, Daniel Dekany wrote:
Hi,
Not yet, but there's a FREEMARKER-35 branch that deals with all the
java.time types. It works at the first sight, but actually will need a
significant amount of work before it can be released. I plan to put
aside time for a "sprint" on it near the end of October. We will see.
And yes, I also want to add at least a few date operations built-ins.
On Fri, Oct 1, 2021 at 9:59 AM Geoffrey De Smet <ge0ffrey.s...@gmail.com> wrote:
Hi all,
Does Freemarker have plans to support using java.time.LocalDate instead
of java.util.Date?
The latter is causing off-by-one errors for in our Freemarker templates
if executed in certain timezones (and adjusting the timezone opens
another can of worms).
See https://github.com/jbake-org/jbake/issues/726
Also, many java.time methods, such as plusDays(3) or next monday,
would be very welcome in Freemarker templates.
--
With kind regards,
Geoffrey De Smet