Hi,
I would like to find all page versions on a descendents tree created before the parent page creation but I would like to exclude all versions created in the same time, for example by a copy of the tree.
So I need to keep the parent creation date and to add 10 seconds to it.
I get a Calendar date with the creation date
#set ($parentPage=$pageManager.getPage($space.key,$paramParentPageName))
#set ($creationDateOriginal=$parentPage.getCreationDate())
#set ($cal = $action.dateFormatter.getCalendar())
$cal.setTimeInMillis($creationDateOriginal.getTime())
But the following line doesn't work :
$cal.add($cal.SECOND,5)
Could you help me please ?
Best regards,
Elodie