mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-07-16 05:43:54 +03:00
[PR #4580] [MERGED] Specify default DateTimeKind from EFCore #10170
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/jellyfin/jellyfin/pull/4580
Author: @crobibero
Created: 11/25/2020
Status: ✅ Merged
Merged: 12/2/2020
Merged by: @cvium
Base:
master← Head:efcore-datetime📝 Commits (1)
6c0188cFix efcore not returning a UTC DateTime📊 Changes
5 files changed (+71 additions, -25 deletions)
View changed files
📝
Jellyfin.Server.Implementations/JellyfinDb.cs(+2 -0)➕
Jellyfin.Server.Implementations/ModelBuilderExtensions.cs(+48 -0)➕
Jellyfin.Server.Implementations/ValueConverters/DateTimeKindValueConverter.cs(+21 -0)➖
MediaBrowser.Common/Json/Converters/JsonDateTimeIso8601Converter.cs(+0 -24)📝
MediaBrowser.Common/Json/JsonDefaults.cs(+0 -1)📄 Description
Upon further investigation the DateTime wasn't being specified as UTC when coming from efcore, and ASP.NET already returns DateTime in ISO8601 format.
Current workaround from https://github.com/dotnet/efcore/issues/10784
Fixes https://github.com/jellyfin/jellyfin/issues/4577
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.