Allow 24:00:00 for ISO dates in QDateTime::fromString().
authorMitch Curtis <mitch.curtis@nokia.com>
Mon, 4 Jun 2012 14:59:46 +0000 (16:59 +0200)
committerQt by Nokia <qt-info@nokia.com>
Tue, 5 Jun 2012 04:12:37 +0000 (06:12 +0200)
commitd8e457323c2d2ef72ab81838ba82300672e4e26e
tree17ab60a827fcd059ffb2ef689b34bf8511ade217
parent1668c47608dc2b83c62ef76e97361b11b35a92a7
Allow 24:00:00 for ISO dates in QDateTime::fromString().

ISO 8601 section 4.2.3 states that "The end of one calendar day [24:00]
coincides with [00:00] at the start of the next calendar day", so
fromString() was updated to account for this.

Task-number: QTBUG-25387
Change-Id: I391db0da755dbc822ba0820c302a2c10391e1f3b
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@nokia.com>
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
src/corelib/tools/qdatetime.cpp
tests/auto/corelib/tools/qdatetime/tst_qdatetime.cpp