forked from josch/img2pdf
Convert creation/modification dates to UTC (fixes #155)
Ensure that timezones are correctly interpreted in the input by calling `.astimezone()` as appropriate on datetime objects, and store the resulting date fields as UTC. One could argue that datetimes in the local timezone be stored in the PDF, but then the date string handling becomes more complicated; the PDF and XMP date specs both use the `Z` suffix to indicate UTC time, but other +/- offsets require different syntax between the two specs.
parent
0cbcb8fa12
commit
81502f21af
Loading…
Reference in New Issue