mirror of
https://github.com/iptv-org/epg
synced 2025-12-21 21:07:04 -05:00
hacky way for utc time because wtf
wtf
This commit is contained in:
@@ -34,8 +34,8 @@ module.exports = {
|
|||||||
const title = (item.querySelector('div.b-livestreaming-daily-schedule__item-content-title') || { textContent: '' }).textContent
|
const title = (item.querySelector('div.b-livestreaming-daily-schedule__item-content-title') || { textContent: '' }).textContent
|
||||||
const time = (item.querySelector('div.b-livestreaming-daily-schedule__item-content-caption') || { textContent: '' }).textContent
|
const time = (item.querySelector('div.b-livestreaming-daily-schedule__item-content-caption') || { textContent: '' }).textContent
|
||||||
if (title && time) {
|
if (title && time) {
|
||||||
let start = dayjs(listdate.format('YYYY-MM-DD ').concat(time.substring(0,5)), 'YYYY-MM-DD HH:mm').utc()
|
let start = dayjs(listdate.format('YYYY-MM-DD ').concat(time.substring(0,5)), 'YYYY-MM-DD HH:mm').subtract(7, 'hour')
|
||||||
let stop = dayjs(listdate.format('YYYY-MM-DD ').concat(time.substring(8,13)), 'YYYY-MM-DD HH:mm').utc()
|
let stop = dayjs(listdate.format('YYYY-MM-DD ').concat(time.substring(8,13)), 'YYYY-MM-DD HH:mm').subtract(7, 'hour')
|
||||||
if (start.diff(stop, 'h') > 0) {
|
if (start.diff(stop, 'h') > 0) {
|
||||||
stop = stop.add(1, 'day')
|
stop = stop.add(1, 'day')
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user