fixed some broken tests.

This commit is contained in:
kay.one 2013-05-10 23:16:10 -07:00
commit fc57262c89
6 changed files with 7 additions and 4 deletions

View file

@ -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();
}