瀏覽代碼

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
             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())