Refactor timeago code on posts/comments creation