diff options
| author | 2016-07-08 19:47:18 +0000 | |
|---|---|---|
| committer | 2016-07-09 05:28:18 +0000 | |
| commit | 253b2f6d2c694422f27350a447daef04e3aafa2a (patch) | |
| tree | 855b244cd9fa828f170927295a19440d3bb46fbe | |
| parent | Tweak log session marker messages (diff) | |
| download | KVIrc-253b2f6d2c694422f27350a447daef04e3aafa2a.tar.gz KVIrc-253b2f6d2c694422f27350a447daef04e3aafa2a.tar.bz2 KVIrc-253b2f6d2c694422f27350a447daef04e3aafa2a.zip | |
Log milliseconds in ISO timestamps
| -rw-r--r-- | src/kvirc/ui/KviIrcView_loghandling.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/kvirc/ui/KviIrcView_loghandling.cpp b/src/kvirc/ui/KviIrcView_loghandling.cpp index 22edac34c..50fec4305 100644 --- a/src/kvirc/ui/KviIrcView_loghandling.cpp +++ b/src/kvirc/ui/KviIrcView_loghandling.cpp @@ -259,6 +259,13 @@ void KviIrcView::add2Log(const QString & szBuffer, const QDateTime & aDate, int break; case 1: szDate = date.toString(Qt::ISODate); + if (date.timeSpec() == Qt::LocalTime) + { + // Log milliseconds. QDateTime.fromString can parse them already. + // However, the format is more complicated if a timezone is present, + // so only log them for local time. + szDate += date.toString(".zzz"); + } szDate += " "; break; case 2: |
