The Free Software Media System - Server Backend & API
Update XmlTv tests to use UTC date formats. (#14163)
James0c46431cbb48
diff --git a/tests/Jellyfin.LiveTv.Tests/Listings/XmlTvListingsProviderTests.cs b/tests/Jellyfin.LiveTv.Tests/Listings/XmlTvListingsProviderTests.csindex 332658f674..b71dc15201 100644--- a/tests/Jellyfin.LiveTv.Tests/Listings/XmlTvListingsProviderTests.cs+++ b/tests/Jellyfin.LiveTv.Tests/Listings/XmlTvListingsProviderTests.cs@@ -54,7 +54,7 @@ public class XmlTvListingsProviderTestsPath = path};- var startDate = new DateTime(2022, 11, 4, 0, 0, 0, 0, DateTimeKind.Utc);+ var startDate = new DateTime(2022, 11, 4, 0, 0, 0, DateTimeKind.Utc);var programs = await _xmlTvListingsProvider.GetProgramsAsync(info, "3297", startDate, startDate.AddDays(1), CancellationToken.None);var programsList = programs.ToList();Assert.Single(programsList);diff --git a/tests/Jellyfin.LiveTv.Tests/Test Data/LiveTv/Listings/XmlTv/emptycategory.xml b/tests/Jellyfin.LiveTv.Tests/Test Data/LiveTv/Listings/XmlTv/emptycategory.xmlindex dd4aa89774..487b028933 100644--- a/tests/Jellyfin.LiveTv.Tests/Test Data/LiveTv/Listings/XmlTv/emptycategory.xml+++ b/tests/Jellyfin.LiveTv.Tests/Test Data/LiveTv/Listings/XmlTv/emptycategory.xml@@ -1,5 +1,5 @@<tv date="20221104">- <programme channel="3297" start="20221104130000 -0400" stop="20221105235959 -0400">+ <programme channel="3297" start="20221104130000 +0000" stop="20221105235959 +0000"><category lang="en" /><category lang="en">sports</category></programme>diff --git a/tests/Jellyfin.LiveTv.Tests/Test Data/LiveTv/Listings/XmlTv/notitle.xml b/tests/Jellyfin.LiveTv.Tests/Test Data/LiveTv/Listings/XmlTv/notitle.xmlindex 5a5be79976..b3cef41f35 100644--- a/tests/Jellyfin.LiveTv.Tests/Test Data/LiveTv/Listings/XmlTv/notitle.xml+++ b/tests/Jellyfin.LiveTv.Tests/Test Data/LiveTv/Listings/XmlTv/notitle.xml@@ -1,5 +1,5 @@<tv date="20221104">- <programme channel="3297" start="20221104130000 -0400" stop="20221105235959 -0400">+ <programme channel="3297" start="20221104130000 +0000" stop="20221105235959 +0000"><category lang="en">sports</category><episode-num system="original-air-date">2022-11-04 13:00:00</episode-num><icon height="" src="https://domain.tld/image.png" width=""/>