Moving local time printing into a separate method.