From f7b48ab30deeabfa165d889cd71e96153a669ab5 Mon Sep 17 00:00:00 2001 From: spiral Date: Wed, 10 Nov 2021 23:50:44 -0500 Subject: [PATCH] fix: FromDateTimeUtc needs, as mentioned, an UTC datetime --- PluralKit.Bot/Services/ErrorMessageService.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PluralKit.Bot/Services/ErrorMessageService.cs b/PluralKit.Bot/Services/ErrorMessageService.cs index b84b23de..42e1d4fd 100644 --- a/PluralKit.Bot/Services/ErrorMessageService.cs +++ b/PluralKit.Bot/Services/ErrorMessageService.cs @@ -76,7 +76,7 @@ namespace PluralKit.Bot { // if (_lastErrorInChannel.TryGetValue(channelId, out var lastErrorTime)) - var startupTime = Instant.FromDateTimeUtc(Process.GetCurrentProcess().StartTime); + var startupTime = Instant.FromDateTimeUtc(Process.GetCurrentProcess().StartTime.ToUniversalTime()); // don't send errors during startup // mostly because Npgsql throws a bunch of errors when opening connections sometimes??? if ((now - startupTime) < IntervalFromStartup)