date filter with bugs