Generate a decorator for the messages model. Then the time conversion can be done in the decorator. 
You can also write a helper function for this.