I'm trying to convert a time stamp in string format to msecs since epoch, like so:
QString startTime("20131030 21923"); //2013-10-30 02:19:23
auto date = QDateTime::fromString(startTime, "yyyyMMdd hmmss");
auto secsSinceEpoch = date.toTime_t();
The result (secsSinceEpoch) is 1383163763, which converts to 2013-10-30 21:09:23. So it seems like my format string is interpreted incorrectly (as "yyyyMMdd hhmss"), why is that so and what can I do to solve this?