Skip to content

Commit

Permalink
fixes #18, part 1
Browse files Browse the repository at this point in the history
  • Loading branch information
retorquere committed Sep 25, 2023
1 parent b26f11c commit 1c01fb5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ Zotero.DateFromLastModified = new class {
if (typeof year === 'undefined') return ''

const formatted = date.toISOString().replace(/T.*/, '')
if (formatted === '1970-01-01' || formatted = (new Date)..toISOString().replace(/T.*/, '')) return ''
if (formatted === '1970-01-01' || formatted === (new Date).toISOString().replace(/T.*/, '')) return ''
return formatted.replace(/-0/g, '-')
}
}

0 comments on commit 1c01fb5

Please sign in to comment.