Hello everyone, i want to make a real time plot with the current date and time in the x axis. However, the time ticker starts on December 31th of 1969 at 21:00:00. I am using the following code:

QSharedPointer<QCPAxisTickerDateTime> dateTimeTicker(new QCPAxisTickerDateTime);
 dateTimeTicker->setTickOrigin(QDateTime::currentDateTime());
 dateTimeTicker->setDateTimeFormat("hh:mm:ss");
 dateTimeTicker->setTimeZone(QTimeZone::utc());
 dateTimeTicker->setDateTimeSpec(Qt::TimeSpec::LocalTime);
 customPlot->xAxis->setTicker(dateTimeTicker);

Thanks.

Marco Trabattoni.