Just read this post on the developer blog and was thinking the same thing.
We should try to make this visible to the developers, unless it’s solved and I haven’t found it yet 🙂
To keep the decimals and add (2 decimal points if there are none), you need to change
$value = number_format($value);
$value = number_format($value , 2);
add_filter(‘acf/format_value/name=instrument_price’, ‘fix_number’, 20, 3);
function fix_number($value, $post_id, $field) {
$value = number_format($value , 2);
return $value;
}
see https://www.php.net/manual/en/function.number-format.php
In my case I need to use this date_default_timezone_set() function, otherwise my days are off.
So this is not specifically an ACF issues, but a WP5.3 issue with the change in the date_i18n() function?
Same here; The clue could be that the hours are being pushed 5 hours foreward for me, and I am in EST.
For anyone else looking for this (I was looking to add options menu under CPT menu) I came across the solution on Jared Atchison’s site
Here