diff --git a/sites/andorradifusio.ad.config.js b/sites/andorradifusio.ad.config.js index 88dca7e5..19bfb691 100644 --- a/sites/andorradifusio.ad.config.js +++ b/sites/andorradifusio.ad.config.js @@ -27,7 +27,7 @@ module.exports = { let start = parseStart(item, date) if (start.hour() > 11) PM = true if (start.hour() < 12 && PM) start = start.add(1, 'd') - const stop = parseStop(item, date) + const stop = start.add(1, 'h') if (programs.length) { programs[programs.length - 1].stop = start } @@ -43,10 +43,6 @@ module.exports = { } } -function parseStop(item, date) { - return date.tz('Europe/Madrid').endOf('d').add(6, 'h') -} - function parseStart(item, date) { time = `${date.format('MM/DD/YYYY')} ${item.time}`