I've been banging my head with this for a while, I'm sure it will turn out to be a silly thing but I just can't figure it out by myself.
It seems that QDateTime's setTime_t doesn't behave like I would expect. See the code below:
QDateTime t1 = QDateTime::fromString("09:30", "hh:mm");
And the outcome is:
Actual (t1): 1900/01/01 09:30:00.000[local time]
Expected (t2): 2106/02/07 08:28:15.000[local time]
I was expecting t1 and t2 to be the same. Can anybody spot what's wrong? I'm using Qt 4.6.2 on Mac OS X 10.6.
Thanks in advance!