setting the time when the user uploads the post