mirror of
https://github.com/Readarr/Readarr
synced 2025-12-24 01:03:32 +01:00
Fixed: Ignore timezone when comparing tag dates
This commit is contained in:
parent
6273d69ed6
commit
f9a6db40b8
1 changed files with 2 additions and 2 deletions
|
|
@ -471,14 +471,14 @@ public Dictionary<string, Tuple<string, string>> Diff(AudioTag other)
|
|||
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…
Reference in a new issue