Commit 75ad9258 authored by Robert Krawitz's avatar Robert Krawitz

Apply 1 suggestion(s) to 1 file(s)

parent 9bcb9ba1
......@@ -46,8 +46,7 @@ Utilities::FastDateTime::addYears(qint64 years) const
{
FastDateTime answer(*this);
answer.m_dateTime = answer.m_dateTime.addYears(years);
answer.m_msecsSinceEpoch = answer.m_dateTime.isValid() ?
answer.m_dateTime.toMSecsSinceEpoch() : INT64_MIN;
answer.m_msecsSinceEpoch = toValidatedMSecs(answer);
return answer;
}
......
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