Details
-
Bug
-
Resolution: Done
-
P3: Somewhat important
-
4.7.4, 5.9.0
-
None
-
OS: Windows 10 Pro x64
RAM: 8GB
Qt: 5.9.2 Opensource Shared from qt archives
MSVC2017 v.15.4.0
Windows 10 SDK (10.0.15063.0)
MariaDB 10.2
ActivePerl 5.24.2.2403 MSWin32 x86-64int 403863
Python 2.7.14
Ruby 1.9.3-p551
depot_tools
Ninja
win_flex_bison-2.5.5
OpenSSL 1.0.2j Static (x86_64) from source OpenSSL FIPS 2.0.13OS: Windows 10 Pro x64 RAM: 8GB Qt: 5.9.2 Opensource Shared from qt archives MSVC2017 v.15.4.0 Windows 10 SDK (10.0.15063.0) MariaDB 10.2 ActivePerl 5.24.2.2403 MSWin32 x86-64int 403863 Python 2.7.14 Ruby 1.9.3-p551 depot_tools Ninja win_flex_bison-2.5.5 OpenSSL 1.0.2j Static (x86_64) from source OpenSSL FIPS 2.0.13
-
a755c2e52126bea850a04487a9a7d446b03e892a
Description
Hi all,
currently I'm converting some Dates from an Access "DB" to a MySQL DB using Qt and during this progress I've discovered a "bug".
I have the following date "9999-03-06" which formed the problem, because in Qt5.9.X with the following line it will be invalid:
QDate date = QDate::fromString("9999-03-06","yyyy-MM-dd"); //invalid int year = date.year(); //0
In Qt4.7.4 I get:
QDate date = QDate::fromString("9999-03-06","yyyy-MM-dd"); //invalid int year = date.year(); //-4713
.. but it works by using Qt::ISODate:
QDate date = QDate::fromString("9999-03-06",Qt::ISODate); //valid int year = date.year(); //9999
So "yyyy-MM-dd" isn't Qt::ISODate?!
I'm a bit confused about the that.
.. and if you're asking for "YYYY-MM-DD". It doesn't makes a difference.
Kind regards,
Mike