Blog Time
- Author:Scott Reilly
- Version:1.0.2
- Last update:04 Jan 2010
- Compatibility:WP 2.6+, 2.7+, 2.8+, 2.9+
- Comments:go here
- Download:[ zip ]
- Description:
Display the time according to your blog via a widget, admin widget, and/or template tag.
-
Extended Description
Display the time according to your blog via a widget, admin widget, and/or template tag.
This plugin adds a timestamp string to the top of all admin pages to show the server time for the blog. This admin time widget is AJAX-ified so that if you click the timestamp, it updates in place (without a page reload) to show the new current server time.
Also provided is a “Blog Time” widget (for WP2.8+) providing the same functionality as the admin widget, but for your sidebars. You may also utilize the plugin’s capabilities directly within a theme template via use of the template tag ‘blog_time()’.
NOTE: This plugin generates a timestamp and NOT a clock. The time being displayed is the time of the page load, or if clicked, the time when the widget last retrieved the time. It does not actively increment time on the display.
This is most useful to see the server/blog time to judge when a time sensitive post, comment, or action would be dated by the blog (i.e. such as monitoring for when to close comments on a contest post, or just accounting for the server being hosted in a different timezone).
Find out more at the plugin’s WordPress Plugin Repository page.
-
Screenshots
Installation
- Unzip
blog-time.zipinside the/wp-content/plugins/directory for your site (or install via the built-in WordPress plugin installer) - Activate the plugin through the ‘Plugins’ admin menu in WordPress
- Optionally use the ‘Blog Time’ widget (only in WP2.8+), or the template tag ‘blog_time() in a theme template file, to display the blog’s time at the time of the page’s rendering.
- Unzip
-
Frequently Asked Questions
-
Q: How do I customize the format of the time string?
A: The widget and template tag allow you specify a time format directly. The default value for the time format, and the one used by the display of the blog time in the admin, can be overridden by adding a filter to ‘blog_time_format’ and returning the desired time format. See php.net/date for more information regarding the time format.
-
Q: Why is the time not changing on the page?
A: This plugin does not provide an active clock that continues to update to reflect the current time as time passes. It merely displays the current time, according to your server, at the time the page was created and sent to your browser. You can click on the time itself to see if dynamically refresh (without a page reload) to the current time. Or if the page gets manually reloaded you’ll see a new current time.
-
Release Log
- 04 Jan 2010 : v1.0.2 — Add PHPDoc documentation; note compatibility with WP 2.9+; update copyright date
- 29 Sep 2009 : v1.0.1 — Minor bug fix
- 06 Jul 2009 : v1.0 — Initial release
Copyright & Disclaimer
Copyright © 2009-2010 by Scott Reilly (aka coffee2code)Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.


