Update raiplay.it.config.js

This commit is contained in:
Michele Castellaneta 2022-05-03 17:12:38 +02:00 committed by GitHub
parent 64a79313f6
commit a390bfced3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -22,10 +22,10 @@ module.exports = {
.set('D', date.get('D'))
.set('M', date.get('M'))
.set('y', date.get('y'))
const start = startDate.toString()
const start = startDate.toJSON()
const duration = parseInt(item.duration_in_minutes)
const stopDate = startDate.utcOffset(duration)
const stop = stopDate.toString()
const stopDate = startDate.add(duration,'m')
const stop = stopDate.toJSON()
programs.push({
title: item.name || item.program.name,