diff options
author | Mitch Curtis <mitch.curtis@digia.com> | 2013-04-24 13:38:13 +0200 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-06-03 17:05:12 +0200 |
commit | 15da0a5af20fe6771bcb94ef8d46edbd5c8fb64c (patch) | |
tree | 95ff1786f79628a323aeb4758726d3e3b61532b7 /dist | |
parent | 96cd00bc0f42c02877a87fb114bdd9c257b556e4 (diff) |
Make QTime::toString output milliseconds for Qt::TextDate, Qt::ISODate.
Section 4.2.2.4 of ISO 8601 allows for decimal fraction representations
of dates and times. Currently, when calling
QDateTime::toString(Qt::TextDate) or QDateTime::toString(Qt::ISODate),
the milliseconds will be omitted. However,
QDateTime::fromString(str, Qt::TextDate) and
QDateTime::fromString(str, Qt::ISODate) already support decimal
fraction representations, so this patch just adds this support to
QTime::toString, and hence QDateTime::toString().
Task-number: QTBUG-30250
Change-Id: If58e4b3d3105322c51d11a76b832e5e634d8991f
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'dist')
-rw-r--r-- | dist/changes-5.2.0 | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/dist/changes-5.2.0 b/dist/changes-5.2.0 index 17144221d6..a6beaa441d 100644 --- a/dist/changes-5.2.0 +++ b/dist/changes-5.2.0 @@ -31,3 +31,10 @@ QtWidgets introduced to control how precise the autoResize should be. - QFileDialog::setDefaultSuffix() removes leading dot characters. + +QtCore +------ +- [QTBUG-30250] QTime, QDateTime: + When calling QTime::toString(Qt::TextDate) and QTime::toString(Qt::ISODate), + milliseconds are now included in the returned string. This also applies to + QDateTime::toString(Qt::TextDate) and QDateTime::toString(ISODate). |