diff options
author | Lars Knoll <lars.knoll@theqtcompany.com> | 2015-03-02 21:40:43 +0100 |
---|---|---|
committer | Simon Hausmann <simon.hausmann@theqtcompany.com> | 2015-04-24 15:20:59 +0000 |
commit | 353b4e6ffdea7d59687c67da7082834cfd55aaf7 (patch) | |
tree | 5b180668d06230a44a2e90a68ad752b7e4e5bba1 /src/qml/jsruntime/qv4serialize.cpp | |
parent | 68d74b67da1c14045e04ff13d7cd1bce8ea8d622 (diff) |
Store the datetime as a double in the date object
Change-Id: I6ae05a066d021e81eaed90866e09bf480f5d91d9
Reviewed-by: Simon Hausmann <simon.hausmann@theqtcompany.com>
Diffstat (limited to 'src/qml/jsruntime/qv4serialize.cpp')
-rw-r--r-- | src/qml/jsruntime/qv4serialize.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/qml/jsruntime/qv4serialize.cpp b/src/qml/jsruntime/qv4serialize.cpp index 5b4da584b2..d98c1cc341 100644 --- a/src/qml/jsruntime/qv4serialize.cpp +++ b/src/qml/jsruntime/qv4serialize.cpp @@ -198,7 +198,7 @@ void Serialize::serialize(QByteArray &data, const QV4::Value &v, ExecutionEngine } else if (const QV4::DateObject *d = v.as<DateObject>()) { reserve(data, sizeof(quint32) + sizeof(double)); push(data, valueheader(WorkerDate)); - push(data, d->date().asDouble()); + push(data, d->date()); } else if (const RegExpObject *re = v.as<RegExpObject>()) { quint32 flags = re->flags(); QString pattern = re->source(); |