Details
-
Sub-task
-
Resolution: Done
-
P2: Important
-
None
-
Scratchbox/Harmattan
-
d9e0c2ea4d64b8fdfb31b28e71373735be38101b 3d4149afe62b4fc5d519a2a155b8f8c32e7e95c4 8f95a19d330480bd86650c3d2e4e147d3bca5789
Description
Sample program:
#include <QDebug> #include <QDateTime> int main(int argc, char *argv[]) { QDateTime dt = QDateTime::fromString("1978-11-09T00:00:00+04:00", Qt::ISODate); qDebug() << dt << (dt.timeSpec() == Qt::OffsetFromUTC); qDebug() << dt.toString(Qt::ISODate); return 0; }
Output:
QDateTime("Thu Nov 9 00:00:00 1978") true
"1978-11-09T00:00:00"
So the +04:00 offset is lost. This seems to be related to the missing "Z" for UTC times mentioned in http://bugreports.qt.nokia.com/browse/QTBUG-9698.
This makes some synchronisation use-cases for qtcontacts-tracker really painful.
Attachments
Issue Links
- relates to
-
QTBUG-26161 QDateTime::toString does not output timezone
-
- Closed
-