change function for output posts date