Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorrect timezone information in pdf metadata. #451

Closed
JohnLErvin opened this issue Jun 8, 2022 · 4 comments
Closed

Incorrect timezone information in pdf metadata. #451

JohnLErvin opened this issue Jun 8, 2022 · 4 comments
Assignees

Comments

@JohnLErvin
Copy link

Describe the bug

Error details
In resulting pdf metadata, the localtime is reported, but the UTC timezone is indicated. Either report local timezone are change to UTC time when saving in metadata.

Minimal code
Please include some minimal Python code reproducing your issue:

from fpdf import FPDF

pdf = FPDF()
pdf.add_page()
pdf.set_font('helvetica', size=12)
pdf.cell(txt="hello world")
pdf.output("hello_world.pdf")

Open the pdf in any pdf viewer, look at properties and notice timezone for created is incorrect.

Environment

  • Arch
  • Python 3.10.2
  • fpdf2 2.5.4

-->

@Lucas-C
Copy link
Member

Lucas-C commented Jun 8, 2022

Thank you for reporting this @JohnLErvin!

I submitted #452 to fix this

@JohnLErvin
Copy link
Author

You are welcome @Lucas-C, and thank you for the rapid change. I'll have a look to verify fix...

@Lucas-C
Copy link
Member

Lucas-C commented Jun 8, 2022

@Lucas-C
Copy link
Member

Lucas-C commented Jun 17, 2022

This fix has been included in release 2.5.5

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants