Update skylink.cz.config.js

timezone
This commit is contained in:
RevGear 2022-12-23 11:44:43 +00:00 committed by GitHub
parent 1e36121f3f
commit 2f6283a45a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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) {