adjusted API for close time of posts
fixed bugs in prevous commit