mirror of
https://github.com/iptv-org/epg
synced 2025-12-17 10:56:57 -05:00
Merge pull request #2938 from StrangeDrVN/fix-dishtv-parser
Correct timezone offset calculation for dishtv.in
This commit is contained in:
@@ -45,8 +45,8 @@ module.exports = {
|
|||||||
icon: parseIcon(item),
|
icon: parseIcon(item),
|
||||||
image: parseImage(item),
|
image: parseImage(item),
|
||||||
episode: parseEpisode(item),
|
episode: parseEpisode(item),
|
||||||
start: dayjs(item.start),
|
start: dayjs.tz(item.start, timezone),
|
||||||
stop: dayjs(item.stop)
|
stop: dayjs.tz(item.stop, timezone)
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|||||||
@@ -76,8 +76,8 @@ it('can parse response', () => {
|
|||||||
|
|
||||||
expect(results.length).toBe(16)
|
expect(results.length).toBe(16)
|
||||||
expect(results[0]).toMatchObject({
|
expect(results[0]).toMatchObject({
|
||||||
start: '2025-01-26T00:30:00.000Z',
|
start: '2025-01-25T19:00:00.000Z',
|
||||||
stop: '2025-01-26T02:05:00.000Z',
|
stop: '2025-01-25T20:35:00.000Z',
|
||||||
title: [
|
title: [
|
||||||
{ lang: 'en', value: 'Train to Busan 2: Peninsula' },
|
{ lang: 'en', value: 'Train to Busan 2: Peninsula' },
|
||||||
{ lang: 'hi', value: 'ट्रेन टू बुसान 2: पेनीनसुला' },
|
{ lang: 'hi', value: 'ट्रेन टू बुसान 2: पेनीनसुला' },
|
||||||
|
|||||||
Reference in New Issue
Block a user