• I am using Custom Layouts to show multiple events. These are saved as a custom post type and have an ACF “time” field to add a “starttime” for each event.

    In Custom Layouts I am using a Custom Field: Data type = Date; Custom date format = H:i to show hours and minutes for the ACF field “starttime”.

    But the time is two hours later, e.g. my field value is 09:00 but it shows 11:00.

    I am pretty sure that this is bug in the plugin because if I am using a shortcode ([acf field="startime"]) the correct time is shown. My timezone is Berlin which it UTC+2 at the moment, so I think your plugin doesnt handle timezones right?

Viewing 1 replies (of 1 total)
  • Plugin Author Code Amp

    (@codeamp)

    Hey @ja4st3r

    Yeah I think you are right on this.

    Essentially, we use the WP functions for converting the timestamp, which takes into consideration the timezone of the site but not necessarily the ACF time.

    While we are planning to add more ACF specific functionality in the future, for now my suggestion (work around) would be to:

    1. Use a text field instead of custom field
    2. Inside the text field, use the the ACF shortcode for displaying the time

    We are planning on some big improvmements (such as better ACF integration) but they are likely coming early next year.

    I hope that helps!

    Best

    Best

Viewing 1 replies (of 1 total)
  • The topic ‘ACF datetime field timezone’ is closed to new replies.