QDateTime addSecs() is behaving strangely with Qt 4.7.0
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
qt4-x11 (Ubuntu) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
If adding less than 3*3600 seconds (3 hours) everything is fine, but if it reaches three hours it adds one hour less. Note that this only occurs when the set date is the current date. For examle adding 3 hours results in SomeTime+2 hours.
An example code would look like this:
QDateTime today = QDateTime(
QDateTime timeInTheFuture = today.addSecs(
qDebug() << timeInTheFuture; //returns the current date 2 o'clock instead of 3 o'clock
And there is another strange thing:
QDateTime thisTime = QDateTime:
thisTime.
qDebug()<<thisTime;
This returns only the current time. addSecs(3600) seems to be ignored.
Kind regards
Hakaishi
description: | updated |
description: | updated |
description: | updated |
description: | updated |
description: | updated |
tags: | added: grave |
Why does Ubuntu import packages from Debian Experimental??? - Is unstable not unstable enough?