fschutt / printpdf

An easy-to-use library for writing PDF in Rust
https://docs.rs/printpdf/
MIT License
801 stars 95 forks source link

Fix pdf timestamp #164

Closed dodomorandi closed 9 months ago

dodomorandi commented 9 months ago

The conversion of the date is wrong, because the Month does not use the numeric representation on display.

I also changed how the timezone is handled, removing the misleading comment (there is nothing guaranteeing the OffsetDateTime is using UTC), and adding a few regression tests.