src/_meta/fields/datetime-field.js
@@ -2,7 +2,6 @@ import { DateTimePicker } from '@wordpress/components'; const DateTimeField = ({field, value, onChange}) => { const [ date, setDate ] = useState( new Date() ); return ( @@ -11,9 +10,8 @@ { field.label } </label> <DateTimePicker currentDate={ date } currentDate={ value||null } onChange={ onChange } label={ field.label } help={ field.description } value={value??''} is12Hour={ true }