I'm developing a small Angular application and I'm using the following HTML element when the user sets a start time:
I noticed that this element works in 12-hour or 24-hour time depending on the user's system locale. Is there a way to always force a 24-hour clock, regardless of the system locale?
Alternatively, are there any JavaScript solutions available?
No, and (according toMDN):
This is even less strict.
If your user interface requirements differ from those provided by the browser, then you must implement (or find) a custom input that meets those requirements, includingvalidatingthe user input.