mirror of
https://github.com/iptv-org/epg.git
synced 2025-05-10 00:50:09 -04:00
Timezone fixing
This commit is contained in:
parent
684251ed83
commit
5fc73a31ae
1 changed files with 3 additions and 2 deletions
|
@ -4,6 +4,7 @@ const dayjs = require('dayjs')
|
|||
const utc = require('dayjs/plugin/utc')
|
||||
|
||||
dayjs.extend(utc)
|
||||
dayjs.extend(timezone)
|
||||
|
||||
module.exports = {
|
||||
site: 'canalplus-haiti.com',
|
||||
|
@ -75,11 +76,11 @@ function parseIcon(item) {
|
|||
}
|
||||
|
||||
function parseStart(item) {
|
||||
return dayjs.unix(item.startTime)
|
||||
return dayjs.unix(item.startTime).tz("America/Port-au-Prince")
|
||||
}
|
||||
|
||||
function parseStop(item) {
|
||||
return dayjs.unix(item.endTime)
|
||||
return dayjs.unix(item.endTime).tz("America/Port-au-Prince")
|
||||
}
|
||||
|
||||
function parseItems(content) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue