allposts time query works