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

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.setTime(QTime(timeyearStr.left(pos).toInt(), timeyearStr.mid(pos+1).toInt(), 0));
dt.setDate(QDate(year, month, day));
return dt.toSecsSinceEpoch();
Supports Markdown
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