test and timezone
This commit is contained in:
1 parent
72a42b6c02
commit
c42b643623
2 files changed
+7
-4
No files matched your search
@@ -1,4 +1,7 @@
|
||||
const dayjs = require('dayjs')
|
||||
const utc = require('dayjs/plugin/utc')
|
||||
|
||||
dayjs.extend(utc)
|
||||
|
||||
module.exports = {
|
||||
site: 'programetv.ro',
|
||||
@@ -45,11 +48,11 @@ module.exports = {
|
||||
}
|
||||
|
||||
function parseStart(item) {
|
||||
return dayjs.utc(item.start)
|
||||
return dayjs(item.start).toJSON()
|
||||
}
|
||||
|
||||
function parseStop(item) {
|
||||
return dayjs.utc(item.stop)
|
||||
return dayjs(item.stop).toJSON()
|
||||
}
|
||||
|
||||
function parseContent(content) {
|
||||
|
||||
Reference in new issue
Block a user