mirror of
https://github.com/iptv-org/epg.git
synced 2025-05-10 00:50:09 -04:00
Update skylink.cz.config.js
timezone
This commit is contained in:
parent
1e36121f3f
commit
2f6283a45a
1 changed files with 2 additions and 1 deletions
|
@ -6,6 +6,7 @@ const customParseFormat = require('dayjs/plugin/customParseFormat')
|
|||
dayjs.extend(utc)
|
||||
dayjs.extend(timezone)
|
||||
dayjs.extend(customParseFormat)
|
||||
const tz = 'Europe/Prague'
|
||||
|
||||
module.exports = {
|
||||
site: 'skylink.cz',
|
||||
|
@ -47,7 +48,7 @@ function parseList(list) {
|
|||
return typeof list === 'string' ? list.split(',') : []
|
||||
}
|
||||
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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue