Fix uptime calculation for non-utc machines

This commit is contained in:
JustArchi
2020-07-05 14:09:24 +02:00
parent cfdec679f1
commit f7647f851a

View File

@@ -2545,7 +2545,7 @@ namespace ArchiSteamFarm {
}
ushort memoryInMegabytes = (ushort) (GC.GetTotalMemory(false) / 1024 / 1024);
TimeSpan uptime = DateTime.UtcNow.Subtract(RuntimeCompatibility.ProcessStartTime);
TimeSpan uptime = DateTime.UtcNow.Subtract(RuntimeCompatibility.ProcessStartTime.ToUniversalTime());
return FormatBotResponse(string.Format(Strings.BotStats, memoryInMegabytes, uptime.ToHumanReadable()));
}