3 Mar
2006
3 Mar
'06
11:18 p.m.
It seems that a Velocity #set directive fails when the RHS involves any arithmetic operation with long integers. Specifically, I just wanted to determine the difference between two dates, thus: #set ($age = $xwiki.currentDate.time - $obj.xWikiObject.getDateValue("donedate").time) I confirmed that I got credible results from both of the operands by printing them, and I could assign either of them to another variable name, but setting $age to the result of any arithmetic operation with any of them always gave "$age" as the formatted result. This shouldn't be this hard, should it? brain[sic]
7483
Age (days ago)
7483
Last active (days ago)
0 comments
1 participants
participants (1)
-
THOMAS, BRIAN M (SBCSI)