Hi,
Using something like:
looks nothing like a QDateTime::currentDateTime().toTime_t(), and when trying to convert it back to a QDateTime, does not retrieve the correct information. What am I doing wrong?
Printable View
You want to see the time_t value for 9th March 11 at 13:59:30? You should get a highly negative value as time_t = 0 for 1st Jan 1970, about 1959 years after the date you set.
I guess you meant:
Sorry, slight typo. However, replacing 09 with 2009 worked great. Thanks.