Skip to content

Commit

Permalink
\pdfcreationdate fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Jazzpirate committed Sep 3, 2023
1 parent 5052ba9 commit f166e3a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rustex/src/commands/pdftex.rs
Original file line number Diff line number Diff line change
Expand Up @@ -731,7 +731,7 @@ pub static PDFCREATIONDATE: PrimitiveExecutable = PrimitiveExecutable {
expandable:true,
_apply:|rf,int| {
let dt = int.jobinfo.time;
let str = format!("{}{:02}{:02}{:02}{:02}{:02}{}",
let str = format!("D:{}{:02}{:02}{:02}{:02}{:02}{}'",
dt.year(),dt.month(),dt.day(),dt.hour(),dt.minute(),dt.second(),
dt.offset().to_string().replace(":","'"));
rf.2 = crate::interpreter::string_to_tokens(str.into());
Expand Down

0 comments on commit f166e3a

Please sign in to comment.