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

Fix clazy warning

parent e4ef9bd8
...@@ -63,7 +63,7 @@ uint KonsoleKalendarEpoch::QDateTime2epoch(const QDateTime &dt) ...@@ -63,7 +63,7 @@ uint KonsoleKalendarEpoch::QDateTime2epoch(const QDateTime &dt)
// SORRY QT DOESN'T HANDLE DAYLIGHT SAVINGS TIME. // SORRY QT DOESN'T HANDLE DAYLIGHT SAVINGS TIME.
// Compute #seconds to subtract for local timezone difference from UTC. // Compute #seconds to subtract for local timezone difference from UTC.
int offset = QDateTime::currentDateTime().toUTC().toSecsSinceEpoch() int offset = QDateTime::currentDateTimeUtc().toSecsSinceEpoch()
-QDateTime::currentDateTime().toSecsSinceEpoch(); -QDateTime::currentDateTime().toSecsSinceEpoch();
return dt.toSecsSinceEpoch() - offset; return dt.toSecsSinceEpoch() - 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