Home › Forums › General Issues › Site Language error 500 › Reply To: Site Language error 500
just an update for anyone else:
hi. just wanted to update you on the solution, which i found with help of Oxy Support. firstly, it IS a bug, and it’s been reported to the devs. it’s specific to Repeaters, because in testing i first rebuilt the whole site in Italian, but same issue; the ACF datepicker inside a Repeater refused to be anything but in English. the solution (in case anyone asks you) is to use a Code Block instead of Dynamic Data in a text Block. in the Code block (if the ACF datepicker field is ‘single_event_date’, and desired format is d F Y) is:
$date_string =strtotime(get_field('single_event_date'));
$formatted_date = date_i18n('d F Y',$date_string);
echo $formatted_date;
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.