Suppose we have the ring $\mathbb{Z}$ and the ideal $I=(6)$ on it. Thus we can talk about the $(6)$-adic topology. Supposedly, $\mathbb{Z}$ with the $(6)$-adic topology is a topological ring. For that, we have to check that the multiplication map $m:\mathbb{Z}\times \mathbb{Z}\rightarrow \mathbb{Z}$ is continuous.
The preimage of the open set $(6)$ under $m$ is $(\mathbb{Z}\times (6))\cup ((2)\times (3))\cup ((3)\times (2))\cup((6)\times \mathbb{Z})$, and it should be an open set of $\mathbb{Z}\times \mathbb{Z}$ with the product topology. However, $(2)$ and $(3)$ are not open in the $(6)$-adic topology, right? So what am I doing wrong?
Edit: This is a concrete example, but my question refers more generally to the $I$-adic topology when $I$ is not prime/primary.