mirror of
https://github.com/iptv-org/epg
synced 2025-12-15 09:56:42 -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),
|
||||
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)
|
||||
})
|
||||
})
|
||||
|
||||
|
||||
@@ -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: पेनीनसुला' },
|
||||
|
||||
Reference in New Issue
Block a user