changing date logic in preprocessfilter