Fixed bad date-time comparison.