QDateTime: Fix sign handling in the timezone offset parser
authorDaniel Seither <post@tiwoc.de>
Tue, 4 Feb 2014 11:36:27 +0000 (12:36 +0100)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Thu, 8 May 2014 19:28:45 +0000 (21:28 +0200)
commitbaf5eed1ef5a71cdcf4ee56cb3e9c9eaa45ea60b
treeaa1dabf4b477782e6aaa97450c3398d951eaa2d4
parentd69c6bc81f0593af8c0d2a2df6899386d8b2df24
QDateTime: Fix sign handling in the timezone offset parser

Previously, parsing negative timezone offsets with minutes != 00
produced wrong results.

Examples (in -> out)
-00:15 -> +00:15
-01:15 -> -00:45

Change-Id: I6fa30810a08bdf2996365661720b2e362e8aeb93
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Reviewed-by: John Layt <jlayt@kde.org>
src/corelib/tools/qdatetime.cpp