remove all usage of QDateTime::toTime_t() to avoid overflow
authorMatthieu Gallien <matthieu.gallien@nextcloud.com>
Mon, 28 Feb 2022 13:02:58 +0000 (14:02 +0100)
committerMatthieu Gallien (Rebase PR Action) <matthieu_gallien@yahoo.fr>
Thu, 17 Mar 2022 23:28:02 +0000 (23:28 +0000)
commit541447723a46a1265a53eaec041472fe03b69ef5
tree61fd499353f050985736ea73e9e6fb586cdb4324
parenta7adca84e26471df3d4a097a3ef6fdd24c1a6a6c
remove all usage of QDateTime::toTime_t() to avoid overflow

QDateTime::toTime_t() can overflow if called with a date outside its
domain of working

this method is obsolete and QDateTime::toSecsSinceEpoch() is the
replacement

Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
src/gui/userstatusselectormodel.cpp
src/libsync/discoveryphase.cpp
src/libsync/ocsuserstatusconnector.cpp
test/testlocaldiscovery.cpp
test/testsetuserstatusdialog.cpp
test/testsyncjournaldb.cpp