Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
QDateTime:currentDateTime().toString(ISO:Date) does not display time zone
btse last edited by
QDateTime::currentDateTime().toString(Qt::ISODate) does not include the timezone.
The above for me produces 2019-02-01T10:49:13 without the expected offset from UTC at the end.
Is there a correct way to get this string?
"If the format is Qt::ISODate, the string format corresponds to the ISO 8601 extended specification for representations of dates and times, taking the form yyyy-MM-ddTHH:mm:ss[Z|[+|-]HH:mm], depending on the timeSpec() of the QDateTime. If the timeSpec() is Qt::UTC, Z will be appended to the string; if the timeSpec() is Qt::OffsetFromUTC, the offset in hours and minutes from UTC will be appended to the string."
"Returns the current datetime, as reported by the system clock, in the local time zone."
So I don't see why the timezone should be appended.