Changed all the create_date references to update_date
Moved the prettyTime code into a common function