Home › Forums › Bug Reports › [important] date picker date is saved minus 1 day › Reply To: [important] date picker date is saved minus 1 day
Stumbled upon this report after a couple of hours struggling, can confirm the same issue with WP 6.01 / ACF 5.12.3
I’m using ACF with a calendar PHP script and I need to use
date_default_timezone_set(‘Europe/Rome’);
in one of my functions.
This results literally in a datepicker value that, when retrieved from that function
get_field (‘my_date’, $post_id); //format Y-m-d
// * * * output: 2022-07-06`
while if edited in the original post field or even in the database record is:
// * * * output: 2022-07-07
EDIT: as per this other thread, it looks like a WordPress core issue
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.