diff options
author | Mitch Curtis <mitch.curtis@digia.com> | 2013-06-14 13:43:16 +0200 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-06-17 13:21:49 +0200 |
commit | 8a680201f155a6af3d162157efa9e4802d712280 (patch) | |
tree | 61349d21529827f308a23c58a9d9528687c7e8c5 /src/src.pro | |
parent | 08d652ca67d4fb3240e4fe2d39d6518d67ecf02d (diff) |
Fix roundtrip conversion of datetimes.
QDateTime.toString() is writing out milliseconds since change
15da0a5af20fe6771bcb94ef8d46edbd5c8fb64c. Unfortunately this breaks
QDateTime::fromString() with Qt::TextDate which can't handle the new
format.
Fix by making QDateTime::fromString split up seconds and milliseconds
on a period, if any. Now
QDateTime dt = ...;
assert(QDateTime::fromString(dt.toString(), Qt::TextDate) == dt)
works again.
Change-Id: Ibfe9032e357ceaf894e33f3e33affe94f56dbf5c
Reviewed-by: Lars Knoll <lars.knoll@digia.com>
Diffstat (limited to 'src/src.pro')
0 files changed, 0 insertions, 0 deletions