fschutt / printpdf

A fully-featured PDF library for Rust, WASM-ready
https://fschutt.github.io/printpdf/
MIT License
829 stars 98 forks source link

Fix pdf timestamp #164

Closed dodomorandi closed 11 months ago

dodomorandi commented 11 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.