core: Include timezone for CTCP TIME replies
authorShane Synan <digitalcircuit36939@gmail.com>
Tue, 29 May 2018 18:36:31 +0000 (13:36 -0500)
committerManuel Nickschas <sputnick@quassel-irc.org>
Wed, 6 Jun 2018 17:54:44 +0000 (19:54 +0200)
commit60364a507b6408a21c749b00a71ea3f63f118db0
treed68b464ae2b1ce6ee5aac820f17ed141301bf702
parent1a3cdccd4c4465bdb684a4e0927c8431e306c7cc
core: Include timezone for CTCP TIME replies

Explicitly specify the default Qt::TextDate date/time format to allow
modifying it.

On Qt 5, include the timezone data.  This doesn't reduce privacy as
timezone data could be figured out before by manually comparing with
UTC, this just makes it easier for those who want that information
shared.

See https://doc.qt.io/qt-5/qdatetime.html#toString
And https://doc.qt.io/qt-5/qt.html#DateFormat-enum
src/core/coresessioneventprocessor.cpp