$[x, \hat{H}]$ or $[\hat{p}, \hat{H}]$ can be computed by substituting $\frac{\hat{p}^2}{2m} + V(x)$ for $\hat{H}$ and doing some simple calculations.
e.g
$$[x, \hat{H}] = [x, \frac{\hat{p}^2}{2m} + V(x)] = \frac{1}{2m}[x, \hat{p}^2] = \frac{1}{2m}(\hat{p}[x, \hat{p}] + [x, \hat{p}]\hat{p}) = \frac{i\hbar\hat{p}}{m}$$
$$[\hat{p}, \hat{H}] = [\hat{p}, \frac{\hat{p}^2}{2m} + V(x)] = [\hat{p}, V(x)] = -i\hbar\frac{\partial V}{\partial x}.$$
However, when I use Schrodinger's equation and substitute $\hat{H} = i\hbar\frac{\partial}{\partial t}$, I get completely different results like
$$[x, \hat{H}]f = i\hbar(x\frac{\partial f}{\partial t} - \frac{\partial}{\partial t}(xf)) = -i\hbar\frac{\partial x}{\partial t}f, [x, \hat{H}] = -i\hbar\frac{\partial x}{\partial t}$$
and $$[\hat{p}, \hat{H}] = \hbar^2\left(\frac{\partial^2}{\partial x \partial t} - \frac{\partial^2}{\partial t \partial x}\right) = 0$$
As far as I know, the former answers are correct and the latter(w/ the Schrodinger equation) are wrong. Why does using the Schrodinger equation give wrong answers here?