From f81c5a95b8f844adfa49be3d47073e0880bf293e Mon Sep 17 00:00:00 2001 From: Garrett Singer Date: Thu, 11 Feb 2021 12:36:52 -0500 Subject: [PATCH] test: for IE11, add colon to timezone in Date strings of PDT mapping tests (#1068) --- test/segment-loader.test.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/segment-loader.test.js b/test/segment-loader.test.js index a72ebf3b1..c1c5cfcda 100644 --- a/test/segment-loader.test.js +++ b/test/segment-loader.test.js @@ -3886,7 +3886,7 @@ QUnit.module('SegmentLoader', function(hooks) { const segmentDurationMs = targetDuration * 1000; - const playlist1Start = new Date('2021-01-01T00:00:00.000-0500'); + const playlist1Start = new Date('2021-01-01T00:00:00.000-05:00'); playlist1.segments[0].dateTimeObject = playlist1Start; playlist1.segments[1].dateTimeObject = new Date(playlist1Start.getTime() + segmentDurationMs); @@ -3897,7 +3897,7 @@ QUnit.module('SegmentLoader', function(hooks) { playlist1.segments[3].dateTimeObject = new Date(playlist1.segments[2].dateTimeObject.getTime() + segmentDurationMs); // offset by 0.25 seconds from playlist1 - const playlist2Start = new Date('2021-01-01T00:00:00.250-0500'); + const playlist2Start = new Date('2021-01-01T00:00:00.250-05:00'); playlist2.segments[0].dateTimeObject = playlist2Start; playlist2.segments[1].dateTimeObject = new Date(playlist2Start.getTime() + segmentDurationMs); @@ -4000,7 +4000,7 @@ QUnit.module('SegmentLoader', function(hooks) { loader.currentTime_ = () => currentTime; const segmentDurationMs = targetDuration * 1000; - const segment0Start = new Date('2021-01-01T00:00:00.000-0500'); + const segment0Start = new Date('2021-01-01T00:00:00.000-05:00'); const segment1Start = new Date(segment0Start.getTime() + segmentDurationMs); const segment2Start = new Date(segment1Start.getTime() + segmentDurationMs); // jump of 0.5 seconds after disco (0.5 seconds of missing real world time, e.g.,