mirror of
https://github.com/iptv-org/epg
synced 2025-12-18 11:27:06 -05:00
Update raiplay.it.config.js
Change local to UTC time
This commit is contained in:
committed by
GitHub
parent
34a1c8900d
commit
1f95bfc2aa
@@ -17,8 +17,7 @@ module.exports = {
|
|||||||
|
|
||||||
data.events.forEach(item => {
|
data.events.forEach(item => {
|
||||||
if (item.name && item.hour && item.duration_in_minutes) {
|
if (item.name && item.hour && item.duration_in_minutes) {
|
||||||
const startDate = dayjs
|
const startDate = dayjs(item.hour, 'HH:mm')
|
||||||
.utc(item.hour, 'HH:mm')
|
|
||||||
.set('D', date.get('D'))
|
.set('D', date.get('D'))
|
||||||
.set('M', date.get('M'))
|
.set('M', date.get('M'))
|
||||||
.set('y', date.get('y'))
|
.set('y', date.get('y'))
|
||||||
@@ -46,8 +45,11 @@ module.exports = {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function parseIcon(item) {
|
function parseIcon(item) {
|
||||||
return cover = item.image ? `https://www.raiplay.it${item.image}` : null
|
let cover = null;
|
||||||
|
if(item.image){
|
||||||
|
cover = `https://www.raiplay.it${item.image}`
|
||||||
|
}
|
||||||
|
return cover
|
||||||
}
|
}
|
||||||
|
|
||||||
function parseURL(item) {
|
function parseURL(item) {
|
||||||
|
|||||||
Reference in New Issue
Block a user