Fix date timezone problems

Test for date was failing on my machine due to being in a different timezone than UTC+9

Test was fixed, and support for correctly serializing QDateTime given in UTC using Qt::UTC added.

Determining system timezone offset simplified, and corrected (was not correct for my system due to daylight savings)