Use Client's Time Zone WordPress Plugin

5 active sites -1 last month
Sets the default time zone for PHP scripts to that of the client.

This plugin retrieves the time zone of the client using "Automatic Timezone Detection Using JavaScript" (http://pellepim.bitbucket.org/jstz/) the first time that a client accesses the site, sets a cookie containing the client's time zone on the client, and reloads the page. This cookie is then read by PHP and the date_default_timezone_set() function (requires PHP 5 >= 5.1.0) is used to set the default time zone for PHP scripts. Since it runs just after all of the plugins are loaded, it changes the time zone for all of the PHP that follows. It is useful in cases where one wants users to see certain posts on certain days. E.g., if the post slug contains the day number, like "xyz-daynr," then the post can be specified by "$slug = 'xyz'.date(j);" in a theme template. The cookie does not expire for ten years, but is reset

client's time zone default time zone time zone

Sites running Use Client's Time Zone, click to open one

Advertisement

Plugins with a similar footprint

Ranked by how many sites run them — a quick way to compare alternatives.

Usage of Use Client's Time Zone over time

June 2023 — July 2024

Between June 2023 and July 2024 the number of sites running this plugin went from 5 to 5 — up 0 (+0%).

MonthSitesChange
July 2024 5 -1
June 2024 6 +0
May 2024 6 +0
April 2024 6 +0
March 2024 6 +2
February 2024 4 -1
January 2024 5 -1
December 2023 6 +1
November 2023 5 +0
October 2023 5 +0
September 2023 5 +1
August 2023 4 -1
July 2023 5 +0
June 2023 5 —
Advertisement

Sites running Use Client's Time Zone

All sites in the collection

5 examples from the collection. Open any site to see the theme and plugins we found on it.

saesolved.com screenshot

saesolved.com

SaeSolved:: LLC - Software and Engineering Solutions - Emphasizing Web Applicati…

thecork.ie screenshot

thecork.ie

TheCork.ie (News & Entertainment) – Your Online News & Entertainment from …