mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-21 14:03:29 -07:00
fixed some broken tests.
This commit is contained in:
parent
85cd877b0c
commit
fc57262c89
6 changed files with 7 additions and 4 deletions
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue