Parcourir la source

Update XmlTv tests to use UTC date formats. (#14163)

James il y a 2 jours
Parent
commit
0c46431cbb

+ 1 - 1
tests/Jellyfin.LiveTv.Tests/Listings/XmlTvListingsProviderTests.cs

@@ -54,7 +54,7 @@ public class XmlTvListingsProviderTests
             Path = 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);

+ 1 - 1
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>

+ 1 - 1
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=""/>