Use ?date, ?time, or ?datetime to tell FreeMarker the exact type.
The reason: Incoming time format needs to be converted into a string?string("format")
value="${(model.time?string('yyyy-MM-dd HH:mm:ss'))!}"
Reproduced in: https: //www.jianshu.com/p/ed1699d48e87