Skip to content

Commit

Permalink
Fix modify time comparison check equality embedded files
Browse files Browse the repository at this point in the history
  • Loading branch information
liborm85 committed Dec 15, 2024
1 parent 4297040 commit bcc64c2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
- Fix PDF/A3 compliance of attachments
- Fix CIDSet generation only for PDF/A1 subset
- Fix missing acroform font dictionary
- Fix modify time comparison check equality embedded files

### [v0.15.1] - 2024-10-30

Expand Down
3 changes: 2 additions & 1 deletion lib/mixins/attachments.js
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@ function isEqual(a, b) {
a.Params.CheckSum.toString() === b.Params.CheckSum.toString() &&
a.Params.Size === b.Params.Size &&
a.Params.CreationDate.getTime() === b.Params.CreationDate.getTime() &&
a.Params.ModDate.getTime() === b.Params.ModDate.getTime()
((a.Params.ModDate === undefined && b.Params.ModDate === undefined) ||
a.Params.ModDate.getTime() === b.Params.ModDate.getTime())
);
}

0 comments on commit bcc64c2

Please sign in to comment.