added TimeFormatter class for formatting the time of each post