From 74c37cd8fa37109c8157d6afc0f1910892b8888d Mon Sep 17 00:00:00 2001 From: Luke Pulverenti Date: Fri, 19 Jul 2013 14:37:14 -0400 Subject: [PATCH] perform notification date check in utc --- .../EntryPoints/Notifications/RemoteNotifications.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MediaBrowser.Server.Implementations/EntryPoints/Notifications/RemoteNotifications.cs b/MediaBrowser.Server.Implementations/EntryPoints/Notifications/RemoteNotifications.cs index b8b1bbf287..e98a0a2c59 100644 --- a/MediaBrowser.Server.Implementations/EntryPoints/Notifications/RemoteNotifications.cs +++ b/MediaBrowser.Server.Implementations/EntryPoints/Notifications/RemoteNotifications.cs @@ -100,7 +100,7 @@ namespace MediaBrowser.Server.Implementations.EntryPoints.Notifications { // Only show notifications that are active, new since last download, and not older than max age var notificationList = notifications - .Where(i => string.Equals(i.active, "1") && i.date.ToUniversalTime() > lastRunTime && (DateTime.Now - i.date.ToUniversalTime()) <= _maxAge) + .Where(i => string.Equals(i.active, "1") && i.date.ToUniversalTime() > lastRunTime && (DateTime.UtcNow - i.date.ToUniversalTime()) <= _maxAge) .ToList(); foreach (var user in _userManager.Users.ToList())