Answer the question
In order to leave comments, you need to log in
How to get time in ISO 8601 format with timezone?
Need to get: 2014-11-07T16:21:02+03:00 After reading
the documentation, it turned out this:
QDateTime::currentDateTime().toTimeSpec( Qt::OffsetFromUTC ).toString( Qt::ISODate )
Answer the question
In order to leave comments, you need to log in
There are examples here https://doc.qt.io/qt-5/qt.html#DateFormat-enum
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question