mirror of
https://github.com/iptv-org/epg
synced 2025-12-19 03:46:41 -05:00
Update skylink.cz.config.js
timezone
This commit is contained in:
@@ -6,6 +6,7 @@ const customParseFormat = require('dayjs/plugin/customParseFormat')
|
|||||||
dayjs.extend(utc)
|
dayjs.extend(utc)
|
||||||
dayjs.extend(timezone)
|
dayjs.extend(timezone)
|
||||||
dayjs.extend(customParseFormat)
|
dayjs.extend(customParseFormat)
|
||||||
|
const tz = 'Europe/Prague'
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
site: 'skylink.cz',
|
site: 'skylink.cz',
|
||||||
@@ -47,7 +48,7 @@ function parseList(list) {
|
|||||||
return typeof list === 'string' ? list.split(',') : []
|
return typeof list === 'string' ? list.split(',') : []
|
||||||
}
|
}
|
||||||
function parseTime(time) {
|
function parseTime(time) {
|
||||||
return dayjs.utc(time, 'DD.MM.YYYY HH.mm')
|
return dayjs(time, 'DD.MM.YYYY HH.mm').tz(tz)
|
||||||
}
|
}
|
||||||
|
|
||||||
function parseCategory(item) {
|
function parseCategory(item) {
|
||||||
|
|||||||
Reference in New Issue
Block a user