fixed date comparison in project controller