• Hi

    first of all i am using the pro version (licenced)

    i was trying to have “NOW” date & time to be auto display without the needs to click on “NOW”.

    i was giving this piece of code but unfortunately it did not do the job:

    —————————————

    add_filter(‘acf/load_field/name=YOUR_DATE_FIELD’, ‘my_acf_default_date’);

    function my_acf_default_date($field) {

    $field[‘default_value’] = date(‘Y-m-d H:i:s’);

    return $field;
    }
    ——————————————–

    the “Now” time and date auto displaying with the above code but unfortunately the NOW time and date not correct.

    example:

    my Sydney Australia current time / desktop time was: 11/09/2019 1:11 AM

    on my sites NOW ACF datepicker is displaying: 10/09/ 3:11 PM instead of 11/09/2019 1:11 AM

    thanks

The topic ‘date & time picker “NOW” issue’ is closed to new replies.