Time input in Safari has the wrong date format
As you can see on the screenshot the System time is shown in the 24 hour format, which is correct.
In safari the time is in AM/PM which is not desired.
I have found no way to fix this.
This is the HTML of the website:
<html><head>
</head>
<body>
<form action="/" method="post">
<label for="">
Date to set:
<input id="date" type="date" name="date">
</label>
<label for="">
Time to set:
<input id="time" type="time" name="time">
</label>
<input type="submit" value="Update!">
</form>
<script>
document.getElementById('date').valueAsDate = new Date();
let now = Date.now();
let hours = new Date(now).getHours();
let minutes = new Date(now).getMinutes();
document.getElementById('time').value = `${hours}:${minutes}`;
</script>
</body></html>
MacBook Air 13″, macOS 15.5