fix dates not being created properly

This commit is contained in:
ThaUnknown 2022-04-21 15:31:37 +02:00
parent faa3b882af
commit e16cc976b8
2 changed files with 4 additions and 4 deletions

View file

@ -1,6 +1,6 @@
{
"name": "Miru",
"version": "1.7.4",
"version": "1.7.5",
"author": "ThaUnknown_ <ThaUnknown@users.noreply.github.com>",
"main": "src/index.js",
"homepage": "https://github.com/ThaUnknown/miru#readme",

View file

@ -150,14 +150,14 @@
})
// 1 month in MS, a bit of jitter for pre-releases and releasers being late as fuck, lets hope it doesnt cause issues
const month = 2674848460
const month = 2674848460
if (prequelEndDate) {
entries = entries.filter(entry => entry.date > new Date(prequelEndDate + month))
entries = entries.filter(entry => entry.date > new Date(+prequelEndDate + month))
}
if (sequelStartDate && media.format === 'TV') {
entries = entries.filter(entry => entry.date < new Date(sequelStartDate - month))
entries = entries.filter(entry => entry.date < new Date(+sequelStartDate - month))
}
if (sequelEntries?.length) {