Use DatePicker instead of TimePicker
import { DatePicker } from "antd";
It is worked for me with the same problem.