In some of my html forms, I am using datetime-local type input field where I am displaying saved value in 24 hours format.
In case of saved value, I first convert that value in formatted datetime value like Y-m-dThh:mm and pass to this html input field. Below is my code:
<input type="datetime-local" value="2024-05-24T18:30:00" />
Now, the problem is, on some systems this html input shows value in 12hrs format and on some systems it shows value in 24hrs format.
I am not able to understand why it is happening and is there anything that I am missing. Can someone please help on this issue. I have tried to find reason/solution for this issue but no success yet.
Thanks