PHP manipulates the datetime value of a mysql-select
<p>i'am trying to format a mysql datetime-value to another format for the view. </p>

<p>I tried several methods, for example:</p>

<pre><code>$date = new DateTime($datetime, new DateTimeZone('Europe/Berlin'));
return $date-&gt;format("Y-m-d H:i");
</code></pre>

<p>But it doesn't work.</p>

<p>The problem is, that (i think..) PHP manipulates the value. The output is always the current datetime and not the value which is saved in the database. For example "2011-04-21 22:27:42".</p>

<p>Does anyone has an idea how the solve this problem? </p>

<p>Greetings.</p>
