Support

Account

Home Forums Bug Reports [important] date picker date is saved minus 1 day

Solved

[important] date picker date is saved minus 1 day

  • Version: ACF 5.8.9

    Case:
    Repeater field with start and end date.
    This is the setting
    settings

    Problem:
    saved dates jump one day back.
    example: select friday april 24 and save the post.
    output is thursday 23

    This is a big issue!

  • It gets even more weird, look at the month of the date picker and the corresponding source code

    woah

    functions.php only related time stuff is the following code

    date_default_timezone_set('Europe/Berlin'); // Lokalzeit
    setlocale(LC_TIME, array('de_DE.UTF-8', 'de.UTF-8'));
  • searched the forums and removed “date_default_timezone_set” from theme.
    checked the rest of the setup. seems to fix the problem.

  • Hello,
    Same problem. Removed โ€œdate_default_timezone_setโ€ but not fixed for me.

    Edit : The server is not on ‘UTC’ and I can’t modify that.

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.

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 Cookie Policy. If you continue to use this site, you consent to our use of cookies.