I want to get current date +/- some hours.
According to docummentation, one of those should work:
date_sub(now(), interval 1 hour)
date_sub(current_time(), interval 1 hour)
but it doesn’t. I use Makumba version is 0.8.2.5.1
Am I doing something wrong?
Indeed, these functions work only in Makumba >= 0.9 (and in some versions <= 0.7)
A workaround in 0.8 is to do the date programmatically via JSP tags, e.g.:
and then use the variable inOneHour (which is in the pageContext) as a named parameter in your query, e.g.: