From f7647f851a25e49238ffc67ba6a3870d82ef2708 Mon Sep 17 00:00:00 2001 From: JustArchi Date: Sun, 5 Jul 2020 14:09:24 +0200 Subject: [PATCH] Fix uptime calculation for non-utc machines --- ArchiSteamFarm/Commands.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ArchiSteamFarm/Commands.cs b/ArchiSteamFarm/Commands.cs index d437aad76..80ae38152 100644 --- a/ArchiSteamFarm/Commands.cs +++ b/ArchiSteamFarm/Commands.cs @@ -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())); }