• Just posting this in case anyone else has the same problem: I was using the timepicker field type and got expected results from get_field() while logged in but when logged out, it was giving me a completely different time (!) I expect this has to do with time zones and maybe with the recent changes to wp_set_default_time_zone made in WP 5+

    Anyway my solution was to get the field value using the regular get_post_meta() function (which returns a string in 24hr time) and then parse it to regular AP/PM time using Date(‘h:i A’, $time_value);

    Hope this helps!

  • The topic ‘Time Field Issues with logged out users’ is closed to new replies.