Meu timer está em formato pm/am gostaria de transformalo em formato 24hr e gostaria de saber por que isso ocorre? meu sistema:Ubuntu navegador: Chrome
import React from "react";
import Button from "../Button";
import style from "./forms.module.scss";
class Forms extends React.Component {
state = {
task: "",
time: "00:00",
};
render() {
return (
<form className={style.newTask}>
<div className={style.inputContainer}>
<label htmlFor="task">Add a new study</label>
<input
type="text"
name="task"
id="task"
placeholder="what do you want to study today?"
required
/>
</div>
<div className={style.inputContainer}>
<label htmlFor="time">Time</label>
<input
type="time"
step="1"
name="time"
value={this.state.time}
onChange={event => this.setState({...this.state, time: event.target.value})}
id="time"
min="00:00:00"
max="01:30:00"
required
pattern="\d{2}:\d{2}"
/>
</div>
<Button>Add</Button>
</form>
);
}
}
export default Forms;