29 Sep
2011
29 Sep
'11
8:21 p.m.
----- "Scott Serr" <[email protected]> wrote:
In the dev mailing list, I saw years ago that $datetool was changed to point to ComparisonDateTool. This gave it added functionality. Also, the documentation on http://platform.xwiki.org/xwiki/bin/view/DevGuide/Scripting says it is a ComparisonDateTool.
My problem is, it doesn't act like a ComparisonDateTool, it acts like DateTool.
Works: $datetool.get('dd.MM.yyyy HH:mm')
Does not work: $datetool.difference('2005-07-04','2007-02-15')
Apparently I can't pass String as Object, I have to pass Date? Anyway, sorry for the traffic.