From 50f66cbcca27969cc49440909c0e46ac8bf33798 Mon Sep 17 00:00:00 2001 From: Mark McDowall Date: Tue, 23 Jul 2013 22:40:29 -0700 Subject: [PATCH] Fixed broken tests --- .../EpisodeRepositoryTests/EpisodesWithoutFilesFixture.cs | 4 ++-- NzbDrone.Core/Parser/ParsingService.cs | 2 -- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/NzbDrone.Core.Test/TvTests/EpisodeRepositoryTests/EpisodesWithoutFilesFixture.cs b/NzbDrone.Core.Test/TvTests/EpisodeRepositoryTests/EpisodesWithoutFilesFixture.cs index 135d6d8c6..496bcf77e 100644 --- a/NzbDrone.Core.Test/TvTests/EpisodeRepositoryTests/EpisodesWithoutFilesFixture.cs +++ b/NzbDrone.Core.Test/TvTests/EpisodeRepositoryTests/EpisodesWithoutFilesFixture.cs @@ -46,7 +46,7 @@ namespace NzbDrone.Core.Test.TvTests.EpisodeRepositoryTests .With(e => e.Id = 0) .With(e => e.SeriesId = _monitoredSeries.Id) .With(e => e.EpisodeFileId = 0) - .With(e => e.AirDate = DateTime.Now.AddDays(-5)) + .With(e => e.AirDateUtc = DateTime.Now.AddDays(-5)) .With(e => e.Monitored = true) .TheFirst(1) .With(e => e.Monitored = false) @@ -59,7 +59,7 @@ namespace NzbDrone.Core.Test.TvTests.EpisodeRepositoryTests .With(e => e.Id = 0) .With(e => e.SeriesId = _unmonitoredSeries.Id) .With(e => e.EpisodeFileId = 0) - .With(e => e.AirDate = DateTime.Now.AddDays(-5)) + .With(e => e.AirDateUtc = DateTime.Now.AddDays(-5)) .With(e => e.Monitored = true) .TheFirst(1) .With(e => e.Monitored = false) diff --git a/NzbDrone.Core/Parser/ParsingService.cs b/NzbDrone.Core/Parser/ParsingService.cs index e647799de..d6d7017da 100644 --- a/NzbDrone.Core/Parser/ParsingService.cs +++ b/NzbDrone.Core/Parser/ParsingService.cs @@ -105,8 +105,6 @@ namespace NzbDrone.Core.Parser return new List(); } - //TODO: this will fail since parsed date will be local, and stored date will be UTC - //which means they will probably end up on different dates var episodeInfo = _episodeService.GetEpisode(series.Id, parsedEpisodeInfo.AirDate.Value); if (episodeInfo != null)