[postgres-Server-V2] feat: Convert DateTime.Now calls to UtcNow

This commit is contained in:
Alessandro Benetton
2025-02-01 21:58:50 +01:00
parent bd9e79d026
commit 45ca2695eb
7 changed files with 9 additions and 9 deletions

View File

@ -43,7 +43,7 @@ public static class Tranga
if (notifications.Any())
{
DateTime max = notifications.MaxBy(n => n.Date)!.Date;
if (DateTime.Now.Subtract(max) > TrangaSettings.NotificationUrgencyDelay(urgency))
if (DateTime.UtcNow.Subtract(max) > TrangaSettings.NotificationUrgencyDelay(urgency))
{
foreach (NotificationConnector notificationConnector in context.NotificationConnectors)
{