gpld_use_server_time
Description
Filter to determine whether to use server time or user’s local time.
Usage
Filter whether to use server time for all fields using GP Limit Dates.
add_filter( 'gpld_use_server_time', 'my_custom_function' );
Filter whether to use server time for all fields using GP Limit Dates in a specific form.
add_filter( 'gpld_use_server_time_FORMID', 'my_custom_function' );
Filter whether to use server time for a specific field.
add_filter( 'gpld_use_server_time_FORMID_FIELDID', 'my_custom_function' );
Parameters
$use_server_time boolean
Whether to use server time for the {today} value. Default is
true
.$field GF_Field
The current Date field.
Since
This action is available since Gravity Forms Limit Dates 1.1.29.
Examples
Use Local User Time instead of Server Time.
add_filter( 'gpld_use_server_time', '__return_false' );