mirror of
https://github.com/iptv-org/epg
synced 2026-09-12 23:06:51 -04:00
Update /sites
This commit is contained in:
@@ -15,12 +15,16 @@ module.exports = {
|
||||
let startTime = DateTime.fromFormat(
|
||||
`${guideDate.format('YYYY-MM-DD')} ${item.HORA_INICIO}`,
|
||||
'yyyy-MM-dd HH:mm',
|
||||
{ zone: 'Europe/Madrid' }
|
||||
{
|
||||
zone: 'Europe/Madrid'
|
||||
}
|
||||
).toUTC()
|
||||
let stopTime = DateTime.fromFormat(
|
||||
`${guideDate.format('YYYY-MM-DD')} ${item.HORA_FIN}`,
|
||||
'yyyy-MM-dd HH:mm',
|
||||
{ zone: 'Europe/Madrid' }
|
||||
{
|
||||
zone: 'Europe/Madrid'
|
||||
}
|
||||
).toUTC()
|
||||
if (stopTime < startTime) {
|
||||
guideDate = guideDate.add(1, 'd')
|
||||
|
||||
Reference in New Issue
Block a user