Home › Forums › General Issues › Date Picker – Output changes depending on editor timezone? › Reply To: Date Picker – Output changes depending on editor timezone?
Using built in WP settings and functions you cannot do this.
It is especially difficult because you want this to work on the front end of the site and at this point there isn’t any way for PHP to know what editor set the time.
The best solution that I can think of is to add a new field where the editor can select a time zone, like a select field, and have the values of this field match the format of the default time zone setting in WP. Then use this new field value to replace get_option('gmt_offset')
You could limit the select field to only those values you need and have the default be where most of the editors are located.
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.