Skip to content

Commit

Permalink
fix dates not being created properly
Browse files Browse the repository at this point in the history
  • Loading branch information
ThaUnknown committed Apr 21, 2022
1 parent faa3b88 commit e16cc97
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
6 changes: 3 additions & 3 deletions src/renderer/src/lib/RSSView.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit e16cc97

Please sign in to comment.