Activity log for bug #669087

Date Who What changed Old value New value Message
2010-10-31 13:30:14 hakaishi bug added bug
2010-10-31 14:03:30 hakaishi description 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 If adding less than 3*3600 secs everything is fine, but if it reaches three hours it adds one hour less. Note that this only occurs when adding to QDateTime SomeDateTime = dateEdit->dateTime(). 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). An example code would look like this: QDateTime nextDate = dateEdit->dateTime(); //the date is the current date QDateTime timeInTheFuture = nextDate.addSecs(3*3600); //or (even if only one second) more than 3 hours qDebug() << timeInTheFuture; //returns the current date and 2 hours 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
2010-10-31 14:15:40 hakaishi description If adding less than 3*3600 secs everything is fine, but if it reaches three hours it adds one hour less. Note that this only occurs when adding to QDateTime SomeDateTime = dateEdit->dateTime(). 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). An example code would look like this: QDateTime nextDate = dateEdit->dateTime(); //the date is the current date QDateTime timeInTheFuture = nextDate.addSecs(3*3600); //or (even if only one second) more than 3 hours qDebug() << timeInTheFuture; //returns the current date and 2 hours 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 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 nextDate = dateEdit->dateTime(); //the date is the current date QDateTime timeInTheFuture = nextDate.addSecs(3*3600); //or (even if only one second) more than 3 hours qDebug() << timeInTheFuture; //returns the current date and 2 hours 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
2010-10-31 14:16:56 hakaishi 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 nextDate = dateEdit->dateTime(); //the date is the current date QDateTime timeInTheFuture = nextDate.addSecs(3*3600); //or (even if only one second) more than 3 hours qDebug() << timeInTheFuture; //returns the current date and 2 hours 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 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 nextDate = dateEdit->dateTime(); //the date is the current date QDateTime timeInTheFuture = nextDate.addSecs(3*3600); //or (even if only one second) more than 3 hours qDebug() << timeInTheFuture; //returns the current date and 2 hours And there is another 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
2010-10-31 14:20:54 hakaishi 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 nextDate = dateEdit->dateTime(); //the date is the current date QDateTime timeInTheFuture = nextDate.addSecs(3*3600); //or (even if only one second) more than 3 hours qDebug() << timeInTheFuture; //returns the current date and 2 hours And there is another 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 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 nextDate = dateEdit->dateTime(); //the date is the current date QDateTime timeInTheFuture = nextDate.addSecs(3*3600); //or (even if only one second) more than 3 hours qDebug() << timeInTheFuture; //returns the current date 2 o'clock instead of 3 o'clock And there is another 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
2010-10-31 14:32:47 hakaishi 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 nextDate = dateEdit->dateTime(); //the date is the current date QDateTime timeInTheFuture = nextDate.addSecs(3*3600); //or (even if only one second) more than 3 hours qDebug() << timeInTheFuture; //returns the current date 2 o'clock instead of 3 o'clock And there is another 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 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(QDate(2010,10,31)); //current date QDateTime timeInTheFuture = today.addSecs(3*3600); //or (even if only one second) more than 3 hours qDebug() << timeInTheFuture; //returns the current date 2 o'clock instead of 3 o'clock And there is another 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
2010-10-31 14:37:06 hakaishi tags grave
2010-11-04 23:39:53 hakaishi qt4-x11 (Ubuntu): status New Invalid