It compares the return values of date.getTimeInMillis() which is of type long (not Long) so that condition should be perfect.
Philipp On 19.04.2010, at 15:21, Bert Leunis wrote: > Hello, > > In info.magnolia.module.templatingkit.util.STKDateContentUtil, with > http://jira.magnolia-cms.com/browse/MGNLSTK-459 I think a bug was introduced. > Two Longs are being compared with == where I think the compareTo() method > should be used. > > Regards, Bert > > > ---------------------------------------------------------------- > For list details see > http://www.magnolia-cms.com/home/community/mailing-lists.html > To unsubscribe, E-mail to: <[email protected]> > ---------------------------------------------------------------- ---------------------------------------------------------------- For list details see http://www.magnolia-cms.com/home/community/mailing-lists.html To unsubscribe, E-mail to: <[email protected]> ----------------------------------------------------------------
