pdf date input box auto corrects DD/MM/YYYY format to American format of MM/DD/YYYY
Categories
(Firefox :: PDF Viewer, defect, P3)
Tracking
()
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.
Comment 1•8 months ago
|
||
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.
Comment 2•7 months ago
|
||
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.
Updated•7 months ago
|
Comment 3•7 months ago
|
||
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.
Reporter | ||
Comment 4•4 months ago
|
||
(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 bugConfidential 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/
Comment 5•4 months ago
|
||
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".
Comment 6•4 months ago
|
||
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.
Description
•