mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-11 16:20:13 +00:00
fix: FromDateTimeUtc needs, as mentioned, an UTC datetime
This commit is contained in:
parent
343fafe9f0
commit
f7b48ab30d
1 changed files with 1 additions and 1 deletions
|
|
@ -76,7 +76,7 @@ namespace PluralKit.Bot
|
||||||
{
|
{
|
||||||
// if (_lastErrorInChannel.TryGetValue(channelId, out var lastErrorTime))
|
// 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
|
// don't send errors during startup
|
||||||
// mostly because Npgsql throws a bunch of errors when opening connections sometimes???
|
// mostly because Npgsql throws a bunch of errors when opening connections sometimes???
|
||||||
if ((now - startupTime) < IntervalFromStartup)
|
if ((now - startupTime) < IntervalFromStartup)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue