Skip to content

Commit ef1626c

Browse files
committed
Use UTC time in CreationDate, fixes #345
1 parent f35960b commit ef1626c

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

jspdf.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -589,12 +589,12 @@ var jsPDF = (function(global) {
589589
}
590590
var created = new Date();
591591
out(['/CreationDate (D:',
592-
created.getFullYear(),
593-
padd2(created.getMonth() + 1),
594-
padd2(created.getDate()),
595-
padd2(created.getHours()),
596-
padd2(created.getMinutes()),
597-
padd2(created.getSeconds()), ')'].join(''));
592+
created.getUTCFullYear(),
593+
padd2(created.getUTCMonth() + 1),
594+
padd2(created.getUTCDate()),
595+
padd2(created.getUTCHours()),
596+
padd2(created.getUTCMinutes()),
597+
padd2(created.getUTCSeconds()), ')'].join(''));
598598
},
599599
putCatalog = function() {
600600
out('/Type /Catalog');

0 commit comments

Comments
 (0)