Commit b23c79bf authored by David Jarvie's avatar David Jarvie
Browse files

Fix parameter not being updated

parent 94aaf938
Pipeline #149186 failed with stage
in 17 seconds
......@@ -609,10 +609,9 @@ bool KADateTimePrivate::equalSpec(const KADateTimePrivate& other) const
*/
QDateTime KADateTimePrivate::updatedDt(QTimeZone& local) const
{
Q_UNUSED(local)
if (specType == KADateTime::LocalZone)
{
const QTimeZone local = QTimeZone::systemTimeZone();
local = QTimeZone::systemTimeZone();
if (mDt.timeZone() != local)
{
const_cast<QDateTime*>(&mDt)->setTimeZone(local);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment