aboutsummaryrefslogtreecommitdiff
path: root/Jellyfin.Api/Controllers/TvShowsController.cs
diff options
context:
space:
mode:
authorClaus Vium <cvium@users.noreply.github.com>2021-09-21 08:17:55 +0200
committerGitHub <noreply@github.com>2021-09-21 08:17:55 +0200
commitb598f0e9fbc864b3886188659339837ee919d8b2 (patch)
tree6a9953d1cf7f12fedec6ec83de58def2ae91a68d /Jellyfin.Api/Controllers/TvShowsController.cs
parent18506f7c218b218f58f99f09c10e0ff6b883b663 (diff)
parent653df7d8e5b3474010b3797d7f15d51225932ca7 (diff)
Merge pull request #6584 from Bond-009/datetime
Specify DateTimeStyles when possible
Diffstat (limited to 'Jellyfin.Api/Controllers/TvShowsController.cs')
-rw-r--r--Jellyfin.Api/Controllers/TvShowsController.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/Jellyfin.Api/Controllers/TvShowsController.cs b/Jellyfin.Api/Controllers/TvShowsController.cs
index 7c5b8a43b..6eada67cf 100644
--- a/Jellyfin.Api/Controllers/TvShowsController.cs
+++ b/Jellyfin.Api/Controllers/TvShowsController.cs
@@ -147,7 +147,7 @@ namespace Jellyfin.Api.Controllers
? _userManager.GetUserById(userId.Value)
: null;
- var minPremiereDate = DateTime.Now.Date.ToUniversalTime().AddDays(-1);
+ var minPremiereDate = DateTime.UtcNow.Date.AddDays(-1);
var parentIdGuid = parentId ?? Guid.Empty;