def _convert_for_op(self, value):
        if self._has_same_tz(value):
            return _to_m8(value)
        raise ValueError('Passed item and index have different timezone')
Convert value to be insertable to ndarray
dataset/ETHPy150Open pydata/pandas/pandas/tseries/index.py/DatetimeIndex._convert_for_op