Local Time

Description:

Using Javascript, Local Time automatically transforms all dates and times on your blog into the visitor’s timezone. To see for yourself, visit the release post for this plugin.

This plugin automatically localizes the output of both the the_date() and the_time() functions as well the comment equivalents, regardless of what output format is being used. No theme modifications are required. Note it will not localize arbitrary dates and times elsewhere.

Credits:

This plugin is very heavily based on code from the P2 theme by Automattic.

Download:

14 thoughts on “Local Time

  1. It is interesting, but how exactly does this plugin? I just do not understand, it takes time from the local machine? Excuse my English, I use Google translator

    P.S. By the way I use windowsxp and browser Chrome

  2. Pingback: Local Time WordPress plugin should be in core - WordPress Tavern Forum

  3. Pingback: WordPress Plugin Releases for 11/05 « Weblog Tools Collection

  4. Great plugin. Does this apply to posts that you do not post immediately? E.g. if you pre-date a post to appear in 2 weeks, does it appear based on the visitor’s timezone? E.g. some visitors will see it before others dependent on their timezone.

    • No, all that stuff still goes off the timezone setting on your blog. This plugin merely uses Javascript to make any dates and times that are displayed on your blog into the user’s timezone. It doesn’t do anything server-side — it’s all client side (stuff in the user’s browser).

  5. Hi Alex, this is a really neat plugin. Very useful for me as I’m developing a blog-based site for a radio station in Europe with listeners in various timezones.

    I’ve hit a compatibility snag with another plugin that’s performing an important function however, and was wondering if you might have some advice.

    I’m using Theme My Profile to present the user’s profile page from wp_admin as a page in the front end of the site (I need to keep subscribers totally away from the back end). The profile page still answers true to is_admin. With Local Time enabled, there’s a javascript clash of some sort, and the wordpress password strength indicator breaks. I spotted the || if(is_admin) at the beginning of your plugin and tried axing it, but no joy. I’ve tried playing with enque in various ways too to make sure script calls are clean, but no joy either.

    If you have any observations or advice, that’d be awesome.

  6. It is interesting, but how exactly does this plugin? I just do not understand, it takes time from the local machine? Excuse my English, I use Google translator

    P.S. By the way I use windowsxp and browser Chrome

Leave a Reply to Viper007Bond Cancel reply