Bugfixes for Freemarker functions

git-svn-id: https://svn.libreccm.org/ccm/trunk@6091 8810af33-2d31-482b-a856-94f89814c4df
master
jensp 2019-05-27 19:15:04 +00:00
parent 550f35eb3e
commit 433b246cfa
1 changed files with 1 additions and 1 deletions

View File

@ -36,7 +36,7 @@
<#function formatDateTime style date>
<#assign year = (date["./@year"]?size > 0)?then(date["./@year"]?number, 0)>
<#assign month = (date["./@month"]?size > 0)?then(date["./@month"]?number + 1, 0)>
<#assign month = (date["./@month"]?size > 0)?then(date["./@month"]?number, 0)>
<#assign day = (date["./@day"]?size > 0)?then(date["./@day"]?number, 0)>
<#assign hour = (date["./@hour"]?size > 0)?then(date["./@hour"]?number, 0)>
<#assign minute = (date["./@minute"]?size > 0)?then(date["./@minute"]?number, 0)>