mirror of
https://github.com/vale981/tridactyl
synced 2025-03-05 09:31:41 -05:00
Fix #1235 - updatenag was checking the wrong date
This commit is contained in:
parent
bc01010512
commit
6cb5816557
1 changed files with 1 additions and 1 deletions
|
@ -3896,7 +3896,7 @@ export async function updatecheck(polite = false) {
|
|||
const latest = feed.items[0].title
|
||||
const current = TRI_VERSION.replace(/-.*/, "")
|
||||
if (semverCompare(latest, current) > 0) {
|
||||
const releasedate = new Date(feed.items[3].pubDate) // e.g. 2018-12-04T15:24:43.000Z
|
||||
const releasedate = new Date(feed.items[0].pubDate) // e.g. 2018-12-04T15:24:43.000Z
|
||||
const today = new Date()
|
||||
// any here are to shut up TS - it doesn't think Dates have subtraction defined :S
|
||||
const days_since = ((today as any) - (releasedate as any)) / (1000 * 60 * 60 * 24)
|
||||
|
|
Loading…
Add table
Reference in a new issue