Commit fb535093 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Optimization

parent afe1c4a8
......@@ -64,7 +64,7 @@ uint KonsoleKalendarEpoch::QDateTime2epoch(const QDateTime &dt)
// Compute #seconds to subtract for local timezone difference from UTC.
int offset = QDateTime::currentDateTime().toUTC().toTime_t() -
QDateTime::currentDateTime().toTime_t();
QDateTime::currentDateTime().toTime_t();
return dt.toTime_t() - offset;
}
......
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