Revert UtcNow change in TextLog.cs
This commit is contained in:
parent
e6d07f2e83
commit
f610fefc83
1 changed files with 2 additions and 2 deletions
|
|
@ -212,7 +212,7 @@ namespace TShockAPI
|
||||||
}
|
}
|
||||||
|
|
||||||
var logEntry = string.Format("{0} - {1}: {2}: {3}",
|
var logEntry = string.Format("{0} - {1}: {2}: {3}",
|
||||||
DateTime.UtcNow.ToString("yyyy-MM-dd HH:mm:ss", CultureInfo.InvariantCulture),
|
DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss", CultureInfo.InvariantCulture),
|
||||||
caller, level.ToString().ToUpper(), message);
|
caller, level.ToString().ToUpper(), message);
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
|
|
@ -224,7 +224,7 @@ namespace TShockAPI
|
||||||
ServerApi.LogWriter.PluginWriteLine(TShock.instance, logEntry, TraceLevel.Error);
|
ServerApi.LogWriter.PluginWriteLine(TShock.instance, logEntry, TraceLevel.Error);
|
||||||
Console.WriteLine("Unable to write to log as log has been disposed.");
|
Console.WriteLine("Unable to write to log as log has been disposed.");
|
||||||
Console.WriteLine("{0} - {1}: {2}: {3}",
|
Console.WriteLine("{0} - {1}: {2}: {3}",
|
||||||
DateTime.UtcNow.ToString("yyyy-MM-dd HH:mm:ss", CultureInfo.InvariantCulture),
|
DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss", CultureInfo.InvariantCulture),
|
||||||
caller, level.ToString().ToUpper(), message);
|
caller, level.ToString().ToUpper(), message);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue