Open Bug 1873868 Opened 8 months ago Updated 4 months ago

pdf date input box auto corrects DD/MM/YYYY format to American format of MM/DD/YYYY

Categories

(Firefox :: PDF Viewer, defect, P3)

Firefox 121
defect

Tracking

()

UNCONFIRMED

People

(Reporter: henryw2004, Unassigned)

Details

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:121.0) Gecko/20100101 Firefox/121.0

Steps to reproduce:

Open a PDF which is editable and has a date input box.
Typed in a date such as 1st February 2024 in the format of DD/MM/YYYY so typed in 01/02/2024. Firefox auto-corrected this into the american format of 02/01/2024.

Actual results:

Firefox auto-corrected this into the american format of 02/01/2024.

Expected results:

What I typed should have stayed as what I typed. I checked if I could change my region but couldn't find anything.

Hello Henry, I could not reproduce the issue on Win10x64, using FF build 121.0. Can you please attach the pdf with the problem, so we can test on our side? Thank you.

Flags: needinfo?(henryw2004)

The Bugbug bot thinks this bug should belong to the 'Firefox::File Handling' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.

Component: Untriaged → File Handling
Component: File Handling → PDF Viewer

The date format could be defined in the pdf itself, it's why we need to have it.
If it contains some private information you can either make this bug Confidential Mozilla employee bug (Edit Bug > checkbox in the Security section) and attach the pdf or send it to me on my mozilla email.

(In reply to Calixte Denizet (:calixte) from comment #3)

The date format could be defined in the pdf itself, it's why we need to have it.
If it contains some private information you can either make this bug Confidential Mozilla employee bug (Edit Bug > checkbox in the Security section) and attach the pdf or send it to me on my mozilla email.

Very sorry for such a bad reply time, I managed to completely miss the email notification.
I've tested this again and the problem still exists however, I agree it could be an issue with the file itself rather than with Firefox.

The file can be downloaded directly from this link: https://prod-cms.scouts.org.uk/media/17244/vo-adult-information-form-mar-2022_print-friendly_editable.pdf
Or from here under "Adult Information Form" and then "Adult information form (PDF) - editable version" : https://www.scouts.org.uk/volunteers/running-things-locally/recruiting-and-managing-volunteers/appointing/appointment-forms/

Flags: needinfo?(henryw2004)

The behavior is different than Adobe. In Adobe, you can't type something like "15/05/2024" (there's a error coming probably from the JS within the PDF), you can only type "15052024".

There's a bug in our implementation because the maxLen (set to 8) isn't correctly honored.
That said the expected format is 'DDMMYYYY' and not 'DD/MM/YYYY': it's why it isn't working correctly.
In Chrome, they try to guess the date but they end up on today, when Acrobat is just complaining that the format isn't correct.

Severity: -- → S3
Priority: -- → P3
You need to log in before you can comment on or make changes to this bug.