Add leading zeros to years below 1000 in QDate::toString().
authorMitch Curtis <mitch.curtis@nokia.com>
Fri, 8 Jun 2012 11:36:16 +0000 (13:36 +0200)
committerQt by Nokia <qt-info@nokia.com>
Wed, 20 Jun 2012 10:38:32 +0000 (12:38 +0200)
commit902638e379317dd62bd925c4b9c8f664e0ecd633
tree0c2f48cfab4984bc0293f7465bfb8bae43d37895
parent7f139e88444860baf275daaa35b387e7e8a448a3
Add leading zeros to years below 1000 in QDate::toString().

QDate::toString(Qt::ISODate) lacks prefixed 0's on years below 1000.
The ISO 8601 standard dictates that this should be the case.

Task-number: QTBUG-16476
Change-Id: I7e73152bba0f5894bcbaa3f4418732b74ce86bc5
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
src/corelib/tools/qdatetime.cpp
tests/auto/corelib/tools/qdate/tst_qdate.cpp