I hope to be able try a different fix tomorrow. I’ll let you know how it goes.
-
This reply was modified 3 years, 6 months ago by
drmikegreen.
Forget that link. It couldn’t work.
Try this one instead:
Use Client’s Time Zone – Version: 1.1.5-beta.
I’m not sure, however, that what you want can be accomplished.
Let me know how it goes.
After a lot of searching, I’ve come to the conclusion that what you want cannot be done — in spite of my initial thinking that it could.
The reason is that WordPress does not read cookies from the HTTP request until after the plugins are loaded. See the sequence of actions under “Actions Run During a Typical Request” at Plugin API/Action Reference and the comment “Runs after cookies have been read from the HTTP request” on the same page.
So a reload action based on the availability of the cookie holding the client’s timezone cannot be initiated until after the plugins are loaded.
If I’m wrong, I’ll gladly do what I can to revise the plugin accordingly.