Skip to content

Commit

Permalink
Ensure annotation date is UTC when exporting PDF
Browse files Browse the repository at this point in the history
  • Loading branch information
mrtcode committed Jun 11, 2024
1 parent d1af33a commit d745e35
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/annotations/write.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ function colorToRaw(hex) {
// D:20190429115637+03'00'
function dateToRaw(str) {
return 'D:' + (new Date(str)).toISOString().slice(0, 19)
.replace(/[^0-9]/g, '');
.replace(/[^0-9]/g, '') + "Z00'00'";
}

function calculateLines(chars, fontSize, maxWidth) {
Expand Down

0 comments on commit d745e35

Please sign in to comment.