Hi everybody!

I cannot understand the reason of my problem connected with calling of function QDateTime::fromString.
The result of it is always "invalid" independently on converting format and datetime string.

When i calling opposite function .toString everything is OK:

QDateTime local(QDateTime::currentDateTime());
QString format = "yyyy-MM-dd hh:mm:ss";
QString S = local.toString(format);

Result: S = "2016-09-04 13:35:29"

But if I call it with the same settings it fails:

QDateTime dateTime = QDateTime::fromString(S, format);

Result: dateTime = (invalid)

Is it a bug of QT, if yes how to improve it ?

I use:
- Linux Ubuntu 15.04 64 bit
- Qt Creator 3.0.0
Based on Qt 5.2.0 (GCC 4.6.1, 64 bit)
Built on Dec 10 2013 at 11:45:55
From revision 27d10d8dcd