mirror of
https://github.com/iptv-org/epg.git
synced 2025-05-11 01:20:08 -04:00
hacky way for utc time because wtf
wtf
This commit is contained in:
parent
ae36f830a5
commit
c88424e16d
1 changed files with 2 additions and 2 deletions
|
@ -34,8 +34,8 @@ module.exports = {
|
|||
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
|
||||
if (title && time) {
|
||||
let start = dayjs(listdate.format('YYYY-MM-DD ').concat(time.substring(0,5)), 'YYYY-MM-DD HH:mm').utc()
|
||||
let stop = dayjs(listdate.format('YYYY-MM-DD ').concat(time.substring(8,13)), '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').subtract(7, 'hour')
|
||||
if (start.diff(stop, 'h') > 0) {
|
||||
stop = stop.add(1, 'day')
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue