fixed date checking in repo