PDA

View Full Version : Forms: Number-to-text date off by one day


henrikb
April 18th, 2008, 04:11 AM
Hi,

I've noticed the following problem with the free Foxit Reader v2.2 Build 2129 (running WinXP Pro Eng):

When editing a date field where you enter the date in number format (mm/dd/yyyy) but is immediately translated/displayed in text format (MMM DD, YYYY), the text format becomes the date one day before the one you edit.

Here is a PDF where I have a problem:

http://www.usemb.se/consulate/ds_158e.pdf

The same error does not occur when editing in Adobe (don't remember version).

Cheers

Henrik

christina
April 19th, 2008, 09:01 AM
Hello Henrikb,

I get the same correct result in foxit and adobe R8.0. Could you please provide more info?

henrikb
April 28th, 2008, 02:47 PM
Hi,

I did some more troubleshooting and it turns out it has to do with what timezone you have in Windows. If the timezone is GMT+0h or later/west (e.g. GMT-7h) then there is no problem, but if the timezone is GMT+1h or earlier/east, then the problem occurs.

Try this:
1) Download http://www.usemb.se/consulate/ds_158e.pdf
2a) Set the timezone to GMT+0h in Windows (don't forget to Apply)
2b) Start Foxit Reader and open the above PDF.
2c) Enter '01-01-2008' in Field 2 and press enter and you'll get 'Jan 1, 2008'.
2d) Close Foxit Reader (important).
3a) Set the timezone to GMT+1h in Windows (don't forget to Apply)
3b) Start Foxit Reader and open the above PDF.
3c) Enter '01-01-2008' in Field 2 and press enter and you'll get 'Dec 31, 2007'.

I've verified this with Foxit Reader v2.2 (Build 2129) on WinXP Pro Eng.

FYI: In new most recent Foxit Reader v2.3 (Build 2825) I instead get an error dialog saying "the inputted string can't be parsed to a valid date timemmm d, yyyy" when entering '01-01-2008'. However one can now enter 'Jan 1, 2008' directly.

Cheers

/Henrik

christina
April 29th, 2008, 05:03 AM
Thks Herikb for you job. I will forward this issue to be confirmed.

Mantis ID: 4506