mirror of
https://github.com/iptv-org/epg.git
synced 2025-05-10 09:00:07 -04:00
Update raiplay.it.config.js
Change local to UTC time
This commit is contained in:
parent
34a1c8900d
commit
1f95bfc2aa
1 changed files with 6 additions and 4 deletions
|
@ -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) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue