Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: for IE11, add colon to timezone in Date strings of PDT mapping tests #1068

Merged
merged 1 commit into from
Feb 11, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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