Support

Account

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