Calculates, displays and automatically updates times and dates in different timezones with respect to daylight saving.
Author: | Dr. Bernhard Riedl (profile at wordpress.org) |
WordPress version required: | 3.8 |
WordPress version tested: | 4.9 |
Plugin version: | 3.37 |
Added to WordPress repository: | 06-04-2006 |
Last updated: | 09-11-2017
Warning! This plugin has not 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.
|
Rating, %: | 100 |
Rated by: | 3 |
Plugin URI: | https://www.bernhard-riedl.com/projects/ |
Total downloads: | 44 733 |
Active installs: | 300+ |
Click to start download |
Screenshots
This screenshot shows the Settings/TimeZoneCalculator Tab with the Selection GUI Section in the Admin Menu.
This picture presents the Preview Section of the TimeZoneCalculator Tab in the Admin Menu.
This screenshot illustrates the clock in the WordPress Admin Bar. - The date/time and display format can be customized.
The last picture shows the Calculator Section in the Tools Menu on a mobile phone.
Installation Instructions
-
Copy the
timezonecalculator
directory into your WordPress Plugins directory (usually wp-content/plugins). Hint: You can also conduct this step within your Admin Menu. -
In the WordPress Admin Menu go to the Plugins tab and activate the TimeZoneCalculator plugin.
-
Navigate to the Settings/TimeZoneCalculator tab and customize the timezones according to your desires.
-
If you have widget functionality just drag and drop TimeZoneCalculator on your widget area in the Appearance Menu. Add additional function and shortcode calls according to your desires.
-
Be happy and celebrate! (and maybe you want to add a link to https://www.bernhard-riedl.com/projects/)
I get the error-message `Fatal error: Class ‘DateTimeZone’ not found in` [..]
TimeZoneCalculator uses the PHP timezones library. Thus, please make sure that you have a recent version of PHP including this library installed and enabled.
If any timezone information like offset, abbreviations, etc. appears to be wrong, please leave a message for the PHP guys on their board.
Why can’t I see the ‘Selection GUI’ section?
This section is based on JavaScript. Thus, you have to enable JavaScript in your browser (this is a default setting in modern browsers like Mozilla Firefox or Google Chrome). TimeZoneCalculator is still fully functional without JavaScript, but you need to customize your timezones manually. If you use a device with a smaller display (e.g. mobile phone), this section will also be hidden.
3.37
- SSLified further links
3.36
- replaced deprecated function calls to wp_get_current_user() and removed $user_ID-globals – thanks for the notification to highgatecreative
3.35
- SSLified further links
3.34
- changed the permission-denied message in uninstall.php core-trac #14530
- removed support link
- fixed some typos
3.33
- adapted trigger of error-messages on settings-page to work with copy & paste
- fixed a warning with clock in Admin Bar – thanks for the notification to bnizette
- fixed some typos
3.32
- changed h3 to h2 on profile-page as follow-up to this post about hierarchy of headings in admin screens
- small clean-up
3.31
- small security improvements
- implemented h1 on settings-page as follow-up to core-trac #31650
3.30
- remember last used timezone in calculator
- added support link
- set 403 http-status code for unauthorized ajax-calls
3.21
- marked calculator & settings-page semantically
- enhanced uninstall procedure
- set appropriate http-status codes for wp_die()-calls
3.20
- made settings-page retina/hdpi-display ready
- adapted settings-page to be fully touch-display enabled
- renamed settings-page sections
- moved vendor-code to separate directory
- fixed small potential bug
- cleaned-up code
- implemented minor design changes
- SSLified links
- added assets/icons
3.10
- implemented responsive web design on settings-page and calculator (thanks for feedback to Alfred Dahlmann, Veronika Grascher and Christian Heiling)
- removed calls to screen_icon()
- improved performance
- extended length of format-parameters to provide space for example for mobile css-classes
- fixed some bugs (thanks for patches to Robert Koch and Yasen Tenev)
- removed filter timezonecalculator_available_admin_colors
- cleaned-up code
3.00
- changed settings-page to jQuery
- improved usability
- discontinued support for Prototype
- updated jshashtable to 3.0
- removed legacy-code -> minimum-version of WordPress necessary is now 3.3
- renamed option include_wordpress_clock_admin_head to include_wordpress_clock_admin_bar
- added caching for continent/timezone-select fields
- removed option ajax_refresh_lib
- removed deprecated function getTimeZonesTime()
- applied PHP 5 constructor in widget
- tested with PHP 5.4
- removed PHP closing tag before EOF
- removed reference sign on function calls
- adapted plugin-links to the new structure of wordpress.org
- cleaned-up code
2.45
- made add-link to link manager for WordPress 3.5 and higher optional
- fixed some HTML5 deprecated warnings
2.44
- extended length of format_timezone-string to 150 chars
- adapted ‘Defaults’-string to use WordPress internal i18n
- updated support section
- updated project-information
2.43
- changed handling of contextual help for WordPress 3.3
- implemented WordPress 3.3 Admin Bar add_node() function
- adapted handling of default settings
- external files are now registered in init-hook
2.42
- changed spin-url to also be delivered according to the site’s protocol
2.41
- fixed a bug with Ajax-update functionality in a SSL-environment. Thanks to huyz who has mentioned this in the forum https://wordpress.org/support/topic/plugin-generalstats-makes-https-call-to-admin-ajax-even-if-site-is-http
- adapted Admin Header Clock to WordPress 3.2 Admin Menu
2.40
- revised the security model (replaced option
Allow anonymous Ajax Refresh Requests
withAll users can view timezones
and added the optionCapability to view timezones
to define the capability of a certain user to access the timezones) - de-coupling of Ajax-refresh-functions and output of
wp_localize_script
(TimeZoneCalculator is now compatible with WP Minify) - small enhancements
2.31
- adapted Admin Bar implementation to re-worked WordPress code
2.30
- Changed default Ajax library to jQuery (Prototype is by default now only used for the settings and calculator pages)
- added support of Admin Menu header clock for WordPress 3.1 Admin Bar
- Code clean-up in the Ajax-refresh-files
- Small bug-fixes and enhancements
2.20
- added jQuery as alternative to Prototype for the Ajax refresh in the front-end
2.10
- added
$params['user_id']
as argument of$timezonecalculator->output()
to make it possible for users to access the timezones of other users - the access to the user’s timezones-selection can be restricted
- reworked and extended a few internal functions
- corrected a few typos and fixed potential bugs
2.00
- start Changelog
- completely reworked API methods and internal structure
- Security improvements (wp_nonce, capabilities)
- reworked Admin Menu
- extracted JavaScript-code
- offer new function
$timezonecalculator->output()
- all timezones, that are not set to specific datetime are now Ajax refreshable
- the timezone-name can now also be displayed if you opt-out from displaying the timezone-abbreviation
- localized datetimes and timezones
- added Admin Menu header clock
- possible to add in “Right Now” box on dashboard
- the calculator and a world-clock can be displayed in the tools-Menu.
- users are now able to choose their own timezones
- added log functionality
- reworked handling of settings in the Admin Menu
- deprecated old function
GetTimeZoneTime()
- added contextual help to settings menu
- updated license to GPLv3