updated newPin to have date parameter, and updated the newPin call to use this new argument