Refactored time formatter to generic class and changed tweets and emails to both reference it