fixed api pull, fixed date formatting