Check for both A and P when converting QDateTime to string.
authorMitch Curtis <mitch.curtis@digia.com>
Thu, 18 Oct 2012 16:51:20 +0000 (18:51 +0200)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Mon, 29 Oct 2012 23:06:26 +0000 (00:06 +0100)
commit6497649730daeab5d3dfac7e806105e99a237656
tree3ff5e196d5e0bef889a6fcae07f9428965aa3f7c
parentd3c1a9f38784c8d3a439517cc971320d74613869
Check for both A and P when converting QDateTime to string.

hasUnquotedAP currently only checks for an a or A, which is wrong
according to both the toString documentation and the comments for
hasUnquotedAP.

Change-Id: I03015734b846fe761085cf8f8fca2b29210cff97
Reviewed-by: Jon Severinsson <jon@severinsson.net>
Reviewed-by: Jędrzej Nowacki <jedrzej.nowacki@digia.com>
src/corelib/tools/qdatetime.cpp
tests/auto/corelib/tools/qdatetime/tst_qdatetime.cpp