The Free Software Media System - Server Backend & API
perform notification date check in utc
Luke Pulverenti74c37cd8fa37
diff --git a/MediaBrowser.Server.Implementations/EntryPoints/Notifications/RemoteNotifications.cs b/MediaBrowser.Server.Implementations/EntryPoints/Notifications/RemoteNotifications.csindex 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 agevar 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())