mirror of
https://github.com/iptv-org/epg.git
synced 2025-05-10 09:00:07 -04:00
Bug fix on determining program stop time
This commit is contained in:
parent
2212362e49
commit
a8d2e6c7ae
1 changed files with 1 additions and 1 deletions
|
@ -43,7 +43,7 @@ module.exports = {
|
|||
programs.push({
|
||||
title: program.title,
|
||||
start: dayjs.utc(program.dateTime, 'YYYY/MM/DD HH:mm'),
|
||||
stop: (i != (scheduleDate.schedule.length - 1)) ? dayjs.utc(program.dateTime, 'YYYY/MM/DD HH:mm') : dayjs.utc(program.dateTime, 'YYYY/MM/DD HH:mm').add(1, 'day').startOf('day'),
|
||||
stop: (i != (scheduleDate.schedule.length - 1)) ? dayjs.utc(scheduleDate.schedule[i+1].dateTime, 'YYYY/MM/DD HH:mm') : dayjs.utc(program.dateTime, 'YYYY/MM/DD HH:mm').add(1, 'day').startOf('day'),
|
||||
description: program.description,
|
||||
icon: program.image,
|
||||
category: program.categoryName,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue