Fixed a missing negate condition on date check.