I have a problem with QDateTime, everytime i use it, and go into debugger to check its' value it is always set to Thursday Oct 15 00:00:00.

i made a test and checked again to see if it was the application or not, but it seems it's a problem with qdatetime.

Does anyone know a work around or fix for this?

this is the code i am using.

Qt Code:
  1. QDateTime Now = QDateTime::currentDateTime();
  2. QDate Date = QDate(2014,1,1);
  3. QTime Time = QTime(1,1,1);
  4. QDateTime Test = QDateTime(Date,Time);
To copy to clipboard, switch view to plain text mode