Fixed: Ignore timezone when comparing tag dates

pull/2949/head
William Brockhus 8 months ago committed by GitHub
parent 6273d69ed6
commit f9a6db40b8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -471,14 +471,14 @@ namespace NzbDrone.Core.MediaFiles
output.Add("Media Format", Tuple.Create(Media, other.Media));
}
if (Date != other.Date)
if (Date?.Date != other.Date?.Date)
{
var oldValue = Date.HasValue ? Date.Value.ToString("yyyy-MM-dd") : null;
var newValue = other.Date.HasValue ? other.Date.Value.ToString("yyyy-MM-dd") : null;
output.Add("Date", Tuple.Create(oldValue, newValue));
}
if (OriginalReleaseDate != other.OriginalReleaseDate)
if (OriginalReleaseDate?.Date != other.OriginalReleaseDate?.Date)
{
// Id3v2.3 tags can only store the year, not the full date
if (OriginalReleaseDate.HasValue &&

Loading…
Cancel
Save