[Bug 669087] [NEW] QDateTime addSecs() is behaving strangely with Qt 4.7.0

hakaishi hakaishi at web.de
Sun Oct 31 13:30:14 UTC 2010


Public bug reported:

If adding less than 3*3600 secs everything is fine, but if it reaches three hours it adds one hour less. For examle adding 3 hours results in SomeTime+2 hours. You have to add 3600s to get the right time. Another Example: To get Time+4 hours you have to add 5 hours instead (only if you want to add 3 or more hours (>=3*3600 secs).
And there is anoter strange thing:

QDateTime thisTime = QDateTime::currentDateTime();
thisTime.addSecs(3600);
qDebug()<<thisTime;

This returns only the current time. addSecs(3600) seems to be ignored.


Kind regards
 Hakaishi

** Affects: qt4-x11 (Ubuntu)
     Importance: Undecided
         Status: New

-- 
QDateTime addSecs() is behaving strangely with Qt 4.7.0
https://bugs.launchpad.net/bugs/669087
You received this bug notification because you are a member of Kubuntu
Bugs, which is subscribed to qt4-x11 in ubuntu.




More information about the kubuntu-bugs mailing list