Fixed issue #2165: Log timestamps have wrong time zone

This commit is contained in:
Albertony
2017-09-15 10:20:47 +02:00
parent 61e58aca9e
commit 212e1a165a
+1 -1
View File
@@ -59,7 +59,7 @@ namespace Duplicati.Library.Logging
/// <param name="exception">An exception, may be null</param>
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());