Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #if($request.action == "suspendAccount")
- #set($suspendTill = $datetool.getSystemTime())
- #set($suspendFor = $mathtool.toInteger($request.suspendFor) * 2628000000) ## considering that 1 month = 30 days (30 Jan + <one month> = 02 Mar)
- #set($suspendTill = $suspendTill + $suspendFor)
- #set($formatedDate = $datetool.format("dd/MM/yyyy HH:mm:ss", $suspendTill))
- working
- @@ $!doc.set("excluded", $formatedDate, $oUser)##
- #else
- [...]
- org.xwiki.rendering.macro.MacroExecutionException: When using the HTML macro inline, you can only use inline HTML content. Block HTML content (such as tables) cannot be displayed. Try leaving an empty line before and after the HTML macro. at org.xwiki.rendering.internal.macro.html.HTMLMacro.cleanHTML(HTMLMacro.java:194) at org.xwiki.rendering.internal.macro.html.HTMLMacro.execute(HTMLMacro.java:144)
Add Comment
Please, Sign In to add comment