Don't use QDateTime::toTime_t or QDateTime::fromTime_t

They only take an uint, and time_t is 64bit.
This breaks when date are before 1970

Fixes #1380