PHP incorrect timestamp for a date string format
I want to get the timestamp from a string format date :

<!-- language: lang-php -->

    echo "server date: ".date("Y-m-d h:i:s")."<br/>";
    echo "my str date: ".$max_date."<br/>";
    $date = DateTime::createFromFormat("Y-m-d h:i:s", "2012-07-31 00:00:00", new DateTimeZone("Europe/Paris"));
    echo "from format: ".$date->getTimestamp();

it returns :

    server date: 2012-07-31 06:15:31
    my str date: 2012-07-31 00:00:00
    from format: 1343685600

Same problem with strtotime() function
PHP incorrect timestamp for a date string format
===

I want to get the timestamp from a string format date :

<!-- language: lang-php -->

    echo "server date: ".date("Y-m-d h:i:s")."<br/>";
    echo "my str date: ".$max_date."<br/>";
    $date = DateTime::createFromFormat("Y-m-d h:i:s", "2012-07-31 00:00:00", new DateTimeZone("Europe/Paris"));
    echo "from format: ".$date->getTimestamp();

it returns :

    server date: 2012-07-31 06:15:31
    my str date: 2012-07-31 00:00:00
    from format: 1343685600

Same problem with strtotime() function