24 hour time format doesn't work when form opened in Browser
Copy link to clipboard
Copied
I have a time field whose format is HH:MM and it works as intended when opened in Acrobat. But when the form is opened in a browser, it doesn't work. For e.g. If I enter 11:00 pm it just displays 11:00 when viewed in a browser but changes to 23:00 when viewed as a PDf. I want it to change to 23:00 even when viewed in the browser. Could someone please help?
Copy link to clipboard
Copied
See the best answer in this topic:
PDF Acrobatic, InDesigner & Photoshoptographer
Copy link to clipboard
Copied
HH:MM in upper case is used to denote the format for military time, also referred to as an 24 hour clock.
You may customized that time field of your PDF using lower case "h:mm tt" for a 12 hour clock and the "tt" portion to denote am/pm.
However, this may have nothing to do with how Adobe Acrobat is changing the time data format nor how the web browser is rendering it.
The issue is that when you fill the time field in the web browser as "11:00 pm" and save it, and then open it with Acrobat, the core JavaScript interpreter will switch to the 24 hour format correctly because you added the "pm"manually in the web browser and saved it.
If you need to have a consistent data format, either don't add the "pm" at the end of the time when you are filling the same PDF form via web browser, or instead of using military time format in Acrobat, simply customize the time field in your PDF with this time format: "h:mm tt".
However, I am using Microsoft Windows 10, with Adobe Acrobat Pro DC and recreated the PDF and tested it in three different web browsers and I don't experience the same issue; it just works fine.
Are you experiencing this with macOS or an iOS device using Safari web browser or Preview?

