query: fix bug with computation of date query: periods including the first days of the current months were calculated wrongly
Authored by: Jean-Francois Dockes 2013-11-07
Parent(s): [fab98b]
Child(ren): [2b8107]