Merge pull request #2938 from StrangeDrVN/fix-dishtv-parser

Correct timezone offset calculation for dishtv.in
This commit is contained in:
Ismaël Moret
2025-12-04 17:18:27 +01:00
committed by GitHub
2 changed files with 4 additions and 4 deletions

View File

@@ -45,8 +45,8 @@ module.exports = {
icon: parseIcon(item),
image: parseImage(item),
episode: parseEpisode(item),
start: dayjs(item.start),
stop: dayjs(item.stop)
start: dayjs.tz(item.start, timezone),
stop: dayjs.tz(item.stop, timezone)
})
})

View File

@@ -76,8 +76,8 @@ it('can parse response', () => {
expect(results.length).toBe(16)
expect(results[0]).toMatchObject({
start: '2025-01-26T00:30:00.000Z',
stop: '2025-01-26T02:05:00.000Z',
start: '2025-01-25T19:00:00.000Z',
stop: '2025-01-25T20:35:00.000Z',
title: [
{ lang: 'en', value: 'Train to Busan 2: Peninsula' },
{ lang: 'hi', value: 'ट्रेन टू बुसान 2: पेनीनसुला' },