Restore the use of the QDateTime::setUtcOffset function

Even though the function is deprecated, we need it for Qt 5.0 on Travis
CI.  We'll wrap it in Qt-version macros later.