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:
- Download from WordPress.org (0 downloads)
Awesome, been waiting for someone to do this for a while after my failed attempts!
Awesome Plugin. I was waiting for this for long time. I always had to check posts on feed reader to check at what time a blog publishes its post.
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
Alex on November 2nd, 2009 at 7:16 AM wrote:
Some Javascript looks at your computer’s timezone, then converts all of the dates and times on my blog to your timezone.
Pingback: Local Time WordPress plugin should be in core - WordPress Tavern Forum
Pingback: WordPress Plugin Releases for 11/05 « Weblog Tools Collection
Does this work on dates in the comment area too?
Yep. 🙂
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).
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.
Can I get a link to the site so I can see what the Javascript error is?
Hi Alex, I’m just setting up a dev mirror, I’ll email you the link.
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