소스 검색

perform notification date check in utc

Luke Pulverenti 12 년 전
부모
커밋
74c37cd8fa
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      MediaBrowser.Server.Implementations/EntryPoints/Notifications/RemoteNotifications.cs

+ 1 - 1
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
             // Only show notifications that are active, new since last download, and not older than max age
             var notificationList = notifications
             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();
                 .ToList();
 
 
             foreach (var user in _userManager.Users.ToList())
             foreach (var user in _userManager.Users.ToList())