diff --git a/core/src/db_manager.cpp b/core/src/db_manager.cpp index 63d7f7b..b724684 100644 --- a/core/src/db_manager.cpp +++ b/core/src/db_manager.cpp @@ -62,7 +62,7 @@ QPair DBManager::isIPBanned(QString ipid) ban.moderator = query.value(7).toString(); if (ban.duration == -2) return {true, ban}; - long long current_time = QDateTime::currentDateTime().toSecsSinceEpoch(); + unsigned long current_time = QDateTime::currentDateTime().toSecsSinceEpoch(); if (ban.time + ban.duration > current_time) return {true, ban}; else @@ -90,7 +90,7 @@ QPair DBManager::isHDIDBanned(QString hdid) ban.moderator = query.value(7).toString(); if (ban.duration == -2) return {true, ban}; - long long current_time = QDateTime::currentDateTime().toSecsSinceEpoch(); + unsigned long current_time = QDateTime::currentDateTime().toSecsSinceEpoch(); if (ban.time + ban.duration > current_time) return {true, ban}; else