mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-09-06 05:47:14 -04:00
perform notification date check in utc
This commit is contained in:
parent
2aaf939f22
commit
74c37cd8fa
@ -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())
|
||||||
|
Loading…
Reference in New Issue
Block a user