WP User Timezone displays the front-end dates & times in the browser's local timezone without actually modifying your database.
Screenshots
Plugin configuration
FAQ
What happens when the timezone detection does not work?
When the timezone detection mechanism is unable to detect a valid timezone, nothing else is changed. The front-end behaves as if this plugin is not installed.
What if I specify a Google API key which is not valid or is blocked?
The plugin tries the Google Timezone API when possible. If the API call fails, the plugin falls back to the default mechanism (jsTimezoneDetect).
What is cookie expiry days option?
The cookie created by the plugin is by default stored as a session cookie, which is cleared when the browser session is closed. The next time, you open the browser, the cookie does not exist. On the other hand, if the cookie expiry is specified, it will be persisted into the user’s computer and is available till it expires.
What does the plugin do on the browser to enable this functionality?
When each front-end page is loaded, the plugin script checks if the cookie is present and valid. If it is present, the plugin does nothing. If the cookie is absent or is expired, the timezone detection process takes place as mentioned in the above sections.
How long should I set the cookie expiry?
It is typically advised to set the expiry as small as possible. This will ensure that the user’s timezone is updated as soon as possible. On the contrary, setting too small expiry period will trigger the timezone detection script too often causing page loads every time the cookie is expired.
A reasonable value would be 7 days.
ChangeLog
1.0.2
1.0.1
- jQuery cookie script inclusion bug fix
1.0.0