aboutsummaryrefslogtreecommitdiff
path: root/Jellyfin.Server.Implementations/ValueConverters/DateTimeKindValueConverter.cs
diff options
context:
space:
mode:
authorBond-009 <bond.009@outlook.com>2020-12-12 19:22:08 +0100
committerGitHub <noreply@github.com>2020-12-12 19:22:08 +0100
commitcb36feaa0f04be60f32a1a16b104d7634023bce6 (patch)
tree805ec50249f7348ae1ee160bfe29e9aa4bccce72 /Jellyfin.Server.Implementations/ValueConverters/DateTimeKindValueConverter.cs
parentb3caa51173080ec813054c78ae9a66a685288de4 (diff)
parentd9263dacd5d2e3594e08a5c75bedb31cfc4c5c97 (diff)
Merge pull request #4775 from barronpm/nullable-jellyfinserverimplementations
Enable Nullable for Jellyfin.Server.Implementations
Diffstat (limited to 'Jellyfin.Server.Implementations/ValueConverters/DateTimeKindValueConverter.cs')
-rw-r--r--Jellyfin.Server.Implementations/ValueConverters/DateTimeKindValueConverter.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/Jellyfin.Server.Implementations/ValueConverters/DateTimeKindValueConverter.cs b/Jellyfin.Server.Implementations/ValueConverters/DateTimeKindValueConverter.cs
index 8a510898b..a9a18c823 100644
--- a/Jellyfin.Server.Implementations/ValueConverters/DateTimeKindValueConverter.cs
+++ b/Jellyfin.Server.Implementations/ValueConverters/DateTimeKindValueConverter.cs
@@ -13,9 +13,9 @@ namespace Jellyfin.Server.Implementations.ValueConverters
/// </summary>
/// <param name="kind">The kind to specify.</param>
/// <param name="mappingHints">The mapping hints.</param>
- public DateTimeKindValueConverter(DateTimeKind kind, ConverterMappingHints mappingHints = null)
+ public DateTimeKindValueConverter(DateTimeKind kind, ConverterMappingHints? mappingHints = null)
: base(v => v.ToUniversalTime(), v => DateTime.SpecifyKind(v, kind), mappingHints)
{
}
}
-} \ No newline at end of file
+}