You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "Tilman Hausherr (Jira)" <ji...@apache.org> on 2020/06/30 02:57:00 UTC
[jira] [Resolved] (PDFBOX-4902) PDF/A validation fails when system
time zone has minutes
[ https://issues.apache.org/jira/browse/PDFBOX-4902?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Tilman Hausherr resolved PDFBOX-4902.
-------------------------------------
Resolution: Fixed
[~jtikkala] thank you for reporting this and providing the fix. A snapshot build is available here:
https://repository.apache.org/content/groups/snapshots/org/apache/pdfbox/pdfbox-app/2.0.21-SNAPSHOT/
> PDF/A validation fails when system time zone has minutes
> --------------------------------------------------------
>
> Key: PDFBOX-4902
> URL: https://issues.apache.org/jira/browse/PDFBOX-4902
> Project: PDFBox
> Issue Type: Bug
> Components: XmpBox
> Affects Versions: 2.0.20
> Reporter: Juho Tikkala
> Assignee: Tilman Hausherr
> Priority: Major
>
> Root problem is incorrect time zone written into PDF when system time zone has minutes (e.g., IST +05:30), in our case it subsequently manifests as PDF/A validation failure.
> This is because of trivial bug at [https://svn.apache.org/viewvc/pdfbox/trunk/xmpbox/src/main/java/org/apache/xmpbox/DateConverter.java?revision=1871492&view=markup#l325] - should divide by 60000 milliseconds to get minutes, but divides by 1000000 instead, resulting in incorrect time zone serialization of +05:01.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: dev-help@pdfbox.apache.org