Output leading zeroes for yyyy date formats in QLocale::toString().
authorMitch Curtis <mitch.curtis@digia.com>
Fri, 21 Sep 2012 09:30:55 +0000 (11:30 +0200)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Tue, 23 Oct 2012 23:38:49 +0000 (01:38 +0200)
commit811bf4da67cedea0daa40f2fff805003687e9d6e
tree079edf87129a3c16bc8e8562dbc4669527084f2b
parentd1ad991bee52e17452cae9dca55b3b340c6f0955
Output leading zeroes for yyyy date formats in QLocale::toString().

Converting the date 1 January 0001 to a string in the format
"dd MMMM yyyy" currently results in the string "01 January 1", but it
should be "01 January 0001".

Task-number: QTBUG-27287
Change-Id: Ia025da7343d1c36aaee34c47c6db551a6e89595f
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
src/corelib/tools/qlocale.cpp
tests/auto/corelib/tools/qlocale/tst_qlocale.cpp