Hello,
I’m trying to set the default date and time value on a datetimepicker field.
I succedeed at setting the default date but the time displayed is always the current time
function default_start_date($field) {
$field['default_value'] = date('d/m/Y H:i:s', strtotime('today 00:00:00'));
return $field;
}
add_filter('acf/load_field/name=start_date', 'default_start_date');
Expected result: 15/12/2018 00:00
Result: 15/12/2018 18:50