From 6497649730daeab5d3dfac7e806105e99a237656 Mon Sep 17 00:00:00 2001 From: Mitch Curtis Date: Thu, 18 Oct 2012 18:51:20 +0200 Subject: [PATCH] Check for both A and P when converting QDateTime to string. MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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 Reviewed-by: Jędrzej Nowacki --- src/corelib/tools/qdatetime.cpp | 3 ++- tests/auto/corelib/tools/qdatetime/tst_qdatetime.cpp | 6 ++++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/src/corelib/tools/qdatetime.cpp b/src/corelib/tools/qdatetime.cpp index 67dbbef..12f9335 100644 --- a/src/corelib/tools/qdatetime.cpp +++ b/src/corelib/tools/qdatetime.cpp @@ -3743,7 +3743,8 @@ static bool hasUnquotedAP(const QString &f) for (int i=0; i