From: Michael Marley Date: Mon, 20 Apr 2015 16:43:53 +0000 (-0400) Subject: Set the PostgreSQL session timezone to 'UTC' X-Git-Tag: 0.11.1~2 X-Git-Url: https://git.quassel-irc.org/?a=commitdiff_plain;h=528493cd8b524c0978cb9ff4fbbe2fa74ad08847;hp=528493cd8b524c0978cb9ff4fbbe2fa74ad08847;p=quassel.git Set the PostgreSQL session timezone to 'UTC' With Qt5, the PostgreSQL driver will transparently convert times to the database's timezone before inserting. Because the default is 'localtime', this causes the local time to be stored in the DB instead of the UTC time. This in turn causes the time displayed in the client to be wrong by the same offset as that timezone's offset. To fix the issue, just make sure the PostgreSQL is in the 'UTC' timezone, so the passed UTC time will not be converted. ---