mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2025-09-28 21:12:43 +02:00
fixed some broken tests.
This commit is contained in:
@@ -29,7 +29,7 @@ namespace NzbDrone.Core.Datastore.Converters
|
||||
|
||||
public object ToDB(object clrValue)
|
||||
{
|
||||
if (clrValue != null)
|
||||
if (clrValue != null && clrValue != DBNull.Value)
|
||||
{
|
||||
return ((DateTime)clrValue).ToUniversalTime();
|
||||
}
|
||||
|
Reference in New Issue
Block a user