Details
-
Bug
-
Resolution: Invalid
-
Not Evaluated
-
None
-
4.8.0
-
None
Description
Qt 4.8.0 returns an invalid QDateTime in the following code:
#include <QtCore> #include <iostream> int main(int argc, char* argv[]) { QString feb29 = "Feb 29 09:10"; QString format = "MMM dd hh:mm"; QDateTime dt = QLocale::c().toDateTime(feb29, format); std::cout << "valid = " << dt.isValid() << std::endl; return 0; }
Attachments
Issue Links
- relates to
-
QTBUG-26911 QFtp's _q_parseUnixDir can't parse dates on leap years
- Closed