date fix?

This commit is contained in:
StrangeDrVN
2026-02-15 14:06:15 +05:30
parent 6b97b20342
commit 61a9346568
2 changed files with 2 additions and 2 deletions

View File

@@ -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,

View File

@@ -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"