Skip to content

Commit

Permalink
test: for IE11, add colon to timezone in Date strings of PDT mapping …
Browse files Browse the repository at this point in the history
…tests (#1068)
  • Loading branch information
gesinger authored Feb 11, 2021
1 parent 112148b commit f81c5a9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/segment-loader.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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);
Expand Down Expand Up @@ -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.,
Expand Down

0 comments on commit f81c5a9

Please sign in to comment.