Uploaded image for project: 'PDFBox'
  1. PDFBox
  2. PDFBOX-4902

PDF/A validation fails when system time zone has minutes

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.8.16, 2.0.20
    • 1.8.17, 2.0.21, 3.0.0 PDFBox
    • XmpBox
    • None

    Description

      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.

      Attachments

        Activity

          People

            tilman Tilman Hausherr
            jtikkala Juho Tikkala
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: