Fixed api to get timelines by date