wallaby9
Member
Hi again (sorry!)
I've created a custom function in custom_functions.php as follows:
It appears in the drop-down list of custom functions for the field definition, specifically the "Custom formatting function" drop-down, which now looks like this:
However, this doesn't seem to be working, as the old date format is still used:
I've tried just returning a simple string instead, and that also doesn't work.
The function does not work in either Detail or Edit views.
You are running the latest release of DaDaBIK
mysql version: 5.5.5-10.3.34-MariaDB-0ubuntu0.20.04.1
Web server: LiteSpeed
Client: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/101.0.4951.54 Safari/537.36
I've created a custom function in custom_functions.php as follows:
function dadabik_bdge_date_format($the_date) {
return date_format($the_date, DATE_ISO8601);
}
It appears in the drop-down list of custom functions for the field definition, specifically the "Custom formatting function" drop-down, which now looks like this:
However, this doesn't seem to be working, as the old date format is still used:
I've tried just returning a simple string instead, and that also doesn't work.
The function does not work in either Detail or Edit views.
Your current DaDaBIK version
You are using DaDaBIK version 11.5-Elba enterprise, installed on 05-21-2022 (installation code: 179456288336fd5460), the latest version of DaDaBIK is 11.5-Elba released on 04-28-2022You are running the latest release of DaDaBIK
System info
PHP Version: 7.4.29mysql version: 5.5.5-10.3.34-MariaDB-0ubuntu0.20.04.1
Web server: LiteSpeed
Client: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/101.0.4951.54 Safari/537.36