correct dates when retrieving tasks