fixed broken statistic date_query #520
Merge remote-tracking branch 'origin/master'