title: Converting QString containing PostgreSQL timestamp to QDateTime
body: <p>I'm having trouble with a seemingly very simple problem: I want to get a QDateTime from a QString containing a timestamp. I got the timestamp from PostgreSQL, but it doesn't matter. Here is the code that does not work:</p>
  
  <pre><code>QString timestamp = "2010-10-09 19:21:46+02:00";
  QString format = "YYYY-MM-DD HH:MM:SSTZD";
  QDateTime dt = QDateTime::fromString(timestamp, format);
  qDebug() &lt;&lt; dt.toString(); // outputs empty string
  </code></pre>
  
  <p>There must be something very obvious I'm missing. Thanks!</p>