common/Log.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)
New commits: commit 988f538f4a9dafd554f6fe89a4791c7f8e119399 Author: Ashod Nakashian <ashod.nakash...@collabora.co.uk> Date: Thu Apr 19 08:35:23 2018 -0400 wsd: log proper ISO date in YYYY-MM-DD format Change-Id: I8851c044bad43a03a99f7471be97ea77c58f7be8 Reviewed-on: https://gerrit.libreoffice.org/53266 Reviewed-by: Jan Holesovsky <ke...@collabora.com> Tested-by: Jan Holesovsky <ke...@collabora.com> diff --git a/common/Log.cpp b/common/Log.cpp index 926bc75ad..78802d4c9 100644 --- a/common/Log.cpp +++ b/common/Log.cpp @@ -110,11 +110,12 @@ namespace Log osTid = Util::getThreadId(); threadName = Util::getThreadName(); } + Poco::DateTime time; - snprintf(buffer, 1023, "%s-%.05lu %.2u/%.2u %.2u:%.2u:%.2u.%.6u [ %s ] %s ", + snprintf(buffer, 1023, "%s-%.05lu %.4u-%.2u-%.2u %.2u:%.2u:%.2u.%.6u [ %s ] %s ", (Source.inited ? Source.id.c_str() : "<shutdown>"), osTid, - time.day(), time.month(), + time.year(), time.month(), time.day(), time.hour(), time.minute(), time.second(), time.millisecond() * 1000 + time.microsecond(), threadName, level); _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits