SQLite データベースから日時を読み取るコードがいくつかあります。日時は文字列として返されます。QDateTime::FromString を使用して日付に変換しようとすると、無効な日付が返されます。以下は、データベースと変換から返された時間です。これが解析できないのはなぜですか?
// -this is the value returned from the DB currentServerTime=2012-01-17 19:20:27.0
QString format("yyyy/MM/dd hh:mm:ss");
QString qCurrentServerTime(currentServerTime);
now = QDateTime::fromString(qCurrentServerTime, format);