Home › Forums › ACF PRO › Unable to save/update new group fields › Reply To: Unable to save/update new group fields
Thanks for the hint, John.
I did what you suggest and $now is 2 hours behind current time (guess it’s UTC time)
mysql date (Post Date GMT): 1455784671
mysql date (now): 1470733499
now: 2016-08-09 11:04:59
In WordPress, timezone is set to my current time (UTC + 2) as it is for the mysql server. So right now I am curious where we need to fix it.
edit: here’s the debugging for save_post
Post Status (before):publish<br/>
Post Status (after):publish<br/>
mysql date (Post Date GMT): 1455784671<br/>
mysql date (now): 1470740759<br/>
now: 2016-08-09 13:05:59
Post Status (before):publish<br/>
Post Status (after):future<br/>
mysql date (Post Date GMT): 1470747926<br/>
mysql date (now): 1470740759<br/>
now: 2016-08-09 13:05:59
Post Status (before):publish<br/>
Post Status (after):publish<br/>
mysql date (Post Date GMT): 1455784671<br/>
mysql date (now): 1470740759<br/>
now: 2016-08-09 13:05:59
Post Status (before):publish<br/>
Post Status (after):future<br/>
mysql date (Post Date GMT): 1470747926<br/>
mysql date (now): 1470740759<br/>
now: 2016-08-09 13:05:59
Post Status (before):publish<br/>
Post Status (after):publish<br/>
mysql date (Post Date GMT): 1455784671<br/>
mysql date (now): 1470740759<br/>
now: 2016-08-09 13:05:59
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.