I think $\mathbb P^1(\mathbb C)$ gives you a simple counter-example. Its ring of global sections is simply $\mathbb C$ whereas its local rings are of the form $\mathbb C[t]_{(t-\alpha)}$.
I think $\mathbb P^1(\mathbb C)$ gives you a simple counter-example. Its ring of global sections is simply $\mathbb C$ whereas its local rings are of the form $\mathbb C[t]_{(t-\alpha)}$.