Commit 798d9582 authored by Alexander Akulich's avatar Alexander Akulich

Fish: Make makeTimeFromLs() actually take the strings into account

The previous code setted values to temporary objects in stack.
parent e3298766
......@@ -855,9 +855,9 @@ int fishProtocol::makeTimeFromLs(const QString &monthStr, const QString &dayStr,
return 0;
} else {
if (month > currentMonth + 1) year--;
dt.time().setHMS(timeyearStr.left(pos).toInt(),timeyearStr.mid(pos+1).toInt(),0);
dt.setTime(QTime(timeyearStr.left(pos).toInt(), timeyearStr.mid(pos+1).toInt(), 0));
}
dt.date().setDate(year,month,day);
dt.setDate(QDate(year, month, day));
return dt.toSecsSinceEpoch();
}
......
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