This test fails on the day before a timezone switch:
Actual (model.clearAtDisplayString()): "23 hours"
Expected (tr("1 day")) : "1 day"
Setting the timezone to UTC remedies this problem.
Signed-off-by: Thomas Witt <pyromaniac@exherbo.org>
ran
run-clang-tidy-14.py -header-filter='.*' -checks='-*,modernize-use-nodiscard' -fix
under linux with most part of our code covered
Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
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>