mirror of
https://github.com/iptv-org/epg
synced 2026-03-21 19:30:52 -04:00
date fix?
This commit is contained in:
@@ -25,7 +25,7 @@ module.exports = {
|
||||
subTitle: (item.grandparentTitle && item.title !== item.grandparentTitle) ? item.title : null,
|
||||
description: item.summary,
|
||||
rating: item.contentRating || null,
|
||||
date: item.originallyAvailableAt ? dayjs(item.originallyAvailableAt).format('YYYY-MM-DD') : (item.year || null),
|
||||
date: item.originallyAvailableAt || item.year || null,
|
||||
categories: parseCategories(item),
|
||||
season: item.parentIndex || null,
|
||||
episode: item.index || null,
|
||||
|
||||
@@ -44,7 +44,7 @@ it('can parse response', () => {
|
||||
rating: 'TV-PG',
|
||||
season: 8,
|
||||
episode: 13,
|
||||
date: '2015-02-15'
|
||||
date: '2015-02-15T00:00:00Z'
|
||||
})
|
||||
|
||||
// Testing another item: "Riders on the Storm"
|
||||
|
||||
Reference in New Issue
Block a user