Plugin Directory

Test out the new Plugin Directory and let us know what you think.
!This plugin hasn’t been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.

Local Time

Displays post and comment date and times in the visitor's timezone using Javascript. Heavily based on code from the P2 theme.

Version 1.2.1

  • Fix bug affecting the post time functions. Whoops.

Version 1.2.0

  • Make use of HTML data attributes instead of nested and hidden <span>s to store the additional data.
  • Move the Javascript all into one .js file so it can be cached.
  • Rewriting of the filters to reduce code duplication.

Version 1.1.5

  • Have the Javascript set the date and/or time's title value to "This date and/or time has been adjusted to match your timezone" so the user knows it's been adjusted.

Version 1.1.4

  • Move the is_feed() check later so it'll actually work.

Version 1.1.3

  • Missing parenthesis was causing a parse error. Whoops!

Version 1.1.2

  • Disable only for the new version of P2.
  • Disable if the WPTouch plugin is active and displaying it's theme (this plugin breaks with it).
  • Disable inside of feeds.

Version 1.1.1

  • If the time format is U (i.e. a Unix timestamp), then don't modify the output as it's most likely being used by PHP rather than being displayed.

Version 1.1.0

  • Add localization for comment dates and times.

Version 1.0.0

  • Initial release.

Requires: 3.3 or higher
Compatible up to: 3.3.2
Last Updated: 5 years ago
Active Installs: 400+


5 out of 5 stars


Got something to say? Need help?


Not enough data

0 people say it works.
0 people say it's broken.

100,1,1 100,2,2
100,1,1 100,1,1 100,2,2
100,1,1 100,2,2