What is the center of a semidirect product?

I'm afraid the answer by Alexander is wrong. The given subgroup is indeed contained in the center of the semidirect product, but the reverse inclusion can fail.

Simple example: let $G_1$ be a center-free group, with an element $x$ of prime order $p$ (for instance, pick $G_1$ non-abelian of order 6 and $p=2$ or 3). Let the cyclic group $G_2$ of order $p$ act on $G_1$ so that the generator $c$ of order $p$ acts by conjugation by $x$: $\varphi(c^n)(g)=x^ngx^{-n}$. Then $\varphi:G_2\to\mathrm{Aut}(G_1)$ is injective, and hence the subgroup $(Z(G_1)\cap \mathrm{Fix}(\varphi))\times(Z(G_2)\cap\mathrm{Ker}(\varphi))$ is trivial. But the center of the semidirect product $G=G_2\rtimes G_1$ is not trivial: if the law of the latter is given by $(g_2,g_1)(h_2,h_1)=(g_2\varphi(g_1)(h_2),g_1h_1)$, then the element $(x,c^{-1})$ is central (thus the center $Z$ is cyclic of order $p$ and $G$ is direct product of $G_1$ and $Z$).

A correct description of the center of an arbitrary semidirect product should involve the kernel of the map $\varphi':G_2\to\mathrm{Out}(G_1)$, but it looks a bit complicated.

Edit: the center can be described as follows: let $f$ be the canonical map $G_2\to \mathrm{Inn}(G_2)=G_2/Z(G_2)$ and $s$ the canonical map $\mathrm{Ker}(\varphi')\to\mathrm{Inn}(G_2)$. Then the center of $G$ is the set of pairs $(g_2,g_1)\in G_2\rtimes G_1$ such that $g_1\in s^{-1}(f(\mathrm{Fix}(\varphi)))\cap Z(G_1)$, and $f(g_2)=s(g_1)^{-1}$.