mirror of
https://github.com/iptv-org/epg.git
synced 2025-05-10 00:50:09 -04:00
Update raiplay.it.config.js
This commit is contained in:
parent
9652561382
commit
29d60704ba
1 changed files with 3 additions and 1 deletions
|
@ -1,9 +1,11 @@
|
||||||
const dayjs = require('dayjs')
|
const dayjs = require('dayjs')
|
||||||
const utc = require('dayjs/plugin/utc')
|
const utc = require('dayjs/plugin/utc')
|
||||||
|
const timezone = require('dayjs/plugin/timezone')
|
||||||
const customParseFormat = require('dayjs/plugin/customParseFormat')
|
const customParseFormat = require('dayjs/plugin/customParseFormat')
|
||||||
|
|
||||||
dayjs.extend(utc)
|
dayjs.extend(utc)
|
||||||
dayjs.extend(customParseFormat)
|
dayjs.extend(customParseFormat)
|
||||||
|
dayjs.extend(timezone)
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
site: 'raiplay.it',
|
site: 'raiplay.it',
|
||||||
|
@ -20,7 +22,7 @@ module.exports = {
|
||||||
const startDate = dayjs(item.hour, 'HH:mm')
|
const startDate = dayjs(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')).tz('Europe/Rome')
|
||||||
const start = startDate.toJSON()
|
const start = startDate.toJSON()
|
||||||
const duration = parseInt(item.duration_in_minutes)
|
const duration = parseInt(item.duration_in_minutes)
|
||||||
const stopDate = startDate.add(duration,'m')
|
const stopDate = startDate.add(duration,'m')
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue