Is anyone else having issues with the ACF time field values being changed on save with the WordPress 5.3 update?
I have Regina set as the timezone in the WordPress settings and whenever I save an ACF time value it moves it 6 hours ahead. It’s currently 6pm in Regina so not sure if that relates.
Example 10am turns into 4pm and 5:30pm turns into 11:30pm
I figured out the issue I was having. I was using date_default_timezone_set() to set the default timezone in my functions.php file. Removing this made the times go back to the correct ones. I guess there’s some sort of conflict with using this PHP function and WordPress 5.3’s new date and time improvements.
if change de date_i18n() from de ACF plugin files to wp_date()
I think it works, don’t forget to backup the ACF dir.
You must be logged in to reply to this topic.
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!
© 2022 Advanced Custom Fields.