From 59b40bd032a8178f80048fad90691db9bac7efa3 Mon Sep 17 00:00:00 2001 From: ta264 Date: Tue, 9 Jul 2019 21:46:10 +0100 Subject: [PATCH] Fixed: one_to_one test if system timezone isn't UTC --- .../Datastore/DatabaseRelationshipFixture.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/NzbDrone.Core.Test/Datastore/DatabaseRelationshipFixture.cs b/src/NzbDrone.Core.Test/Datastore/DatabaseRelationshipFixture.cs index 6ad4b6115..52053ed50 100644 --- a/src/NzbDrone.Core.Test/Datastore/DatabaseRelationshipFixture.cs +++ b/src/NzbDrone.Core.Test/Datastore/DatabaseRelationshipFixture.cs @@ -7,6 +7,7 @@ using NzbDrone.Core.Qualities; using NzbDrone.Core.Test.Framework; using NzbDrone.Core.Music; using NzbDrone.Core.Languages; +using System; namespace NzbDrone.Core.Test.Datastore { @@ -18,6 +19,9 @@ namespace NzbDrone.Core.Test.Datastore { var album = Builder.CreateNew() .With(c => c.Id = 0) + .With(x => x.ReleaseDate = DateTime.UtcNow) + .With(x => x.LastInfoSync = DateTime.UtcNow) + .With(x => x.Added = DateTime.UtcNow) .BuildNew(); Db.Insert(album);