def _to_utc(self, dt):
tz = self._get_tz()<EOL>loc_dt = tz.localize(dt)<EOL>return loc_dt.astimezone(pytz.utc)<EOL>
Takes a naive timezone with an localized value and return it formatted
        as utc.