From 212e1a165aedbc1450c0d47dee3aae5fa1e2e6c0 Mon Sep 17 00:00:00 2001 From: Albertony Date: Fri, 15 Sep 2017 10:20:47 +0200 Subject: [PATCH] Fixed issue #2165: Log timestamps have wrong time zone --- Duplicati/Library/Logging/StreamLog.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Duplicati/Library/Logging/StreamLog.cs b/Duplicati/Library/Logging/StreamLog.cs index fca105fe4..79f705128 100644 --- a/Duplicati/Library/Logging/StreamLog.cs +++ b/Duplicati/Library/Logging/StreamLog.cs @@ -59,7 +59,7 @@ namespace Duplicati.Library.Logging /// An exception, may be null public virtual void WriteMessage(string message, LogMessageType type, Exception exception) { - m_stream.WriteLine("{0:u} - {1}: {2}", DateTime.Now, type, message); + m_stream.WriteLine("{0:u} - {1}: {2}", DateTime.Now.ToUniversalTime().ToString("u"), type, message); if (exception != null) { m_stream.WriteLine(exception.ToString());