fixed bug, should have been checking each logs individual date