[
https://issues.apache.org/jira/browse/PDFBOX-2122?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Tim Allison updated PDFBOX-2122:
--------------------------------
Attachment: PDFBOX-2122.patch
[~tilman], I just tested this with and without the modification to
TTFDataStream. It fails on the old code and passes with the new modification.
The only other small change I might add is to set the milliseconds to 0.
The ttf test document comes from Tika.
Thank you!
> FontBox's TTFDataStream doesn't set timezone in readInternationalDate
> ---------------------------------------------------------------------
>
> Key: PDFBOX-2122
> URL: https://issues.apache.org/jira/browse/PDFBOX-2122
> Project: PDFBox
> Issue Type: Bug
> Components: FontBox
> Reporter: Tim Allison
> Priority: Trivial
> Attachments: PDFBOX-2122.patch
>
>
> TTFDataStream doesn't set the timezone for the calendar. GregorianCalendar
> defaults to the system's timezone. This means that people in different
> timezones will get slightly different dates. (TIKA-1325).
> One TTF Spec (https://developer.apple.com/fonts/TTRefMan/RM06/Chap6.html)
> doesn't specify the timezone, but my guess would be UTC...except that it is
> Apple, so maybe it's Cupertino. :)
--
This message was sent by Atlassian JIRA
(v6.2#6252)