server comparing dates bug fixed v2