I'm using the following query to update fields in my table if token is matching, but the current date is not getting inserted
$this->wpdb->update(
'wp_competitors',
array(
'results' => $tips, // json
'update_time' => ' CURDATE()' //
),
array( 'token' => $token ),
array(
'%s', // value1
'%d' // value2
),
array( '%d' )
);
than I was trying to use php's date('Y-m-d H:i:s') but no results
