Port to QUrl and adapt usage of QDateTime.
Depends on D5749
Tests pass.
This is fine; please check my comment in D5749.