diff options
| author | Claus Vium <cvium@users.noreply.github.com> | 2021-09-21 08:17:55 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-09-21 08:17:55 +0200 |
| commit | b598f0e9fbc864b3886188659339837ee919d8b2 (patch) | |
| tree | 6a9953d1cf7f12fedec6ec83de58def2ae91a68d /Jellyfin.Api/Controllers/TvShowsController.cs | |
| parent | 18506f7c218b218f58f99f09c10e0ff6b883b663 (diff) | |
| parent | 653df7d8e5b3474010b3797d7f15d51225932ca7 (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.cs | 2 |
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; |
