Fix time zone calculation
authorFabian Bumberger <fbumberger@rim.com>
Tue, 22 Apr 2014 15:57:54 +0000 (17:57 +0200)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Thu, 24 Apr 2014 08:38:52 +0000 (10:38 +0200)
commit6a15a535181b203e20032f73022d734e3e90c129
treec0a91706ee35a796fff88b1590b35f04d9031eb5
parent24604a44bbf444dfa198b45948ebeede2ff0d71c
Fix time zone calculation

The result of local time minus global time might be negative.
On QNX time_t is defined as unsigned int and thus the subtraction
will not produce the expected result.
This patch converts the local time and the global time
to double before subtracting them.

Task-number: QTBUG-35693
Change-Id: Ifa442b242a4aa23c59fa427015346150b89c9343
Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
src/qml/jsruntime/qv4dateobject.cpp