Hello-

I believe there may be a problem with PdfDate not respecting timezone offsets during Daylight Savings Time.

For example, in the PdfDate constructor, it just uses the "raw" Calendar offset in the format:

int timezone = d.get(Calendar.ZONE_OFFSET) / (60 * 60 * 1000);

I believe it shouls also take into account the associated Daylight Savings Time offset as well, such as below:

int timezone = (cal.get(Calendar.ZONE_OFFSET)+cal.get(Calendar.DST_OFFSET)) / (60 * 60 * 1000);

Thank you,

Mark Nelson
[EMAIL PROTECTED]





-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO September
19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to