Hello,
I took a look on the web and there is nowhere such tool. That would be really helpful for many of us and in every cases.
I imagin a dropdown with the timezone location to insert in the page with a shortcode.
And another shortcode we can put around every date or hour we enter in the page, with the formatting we want like “G:i a T” for exemple if we only want the time.
Exemple of user case:
We have an event page and we show date and time on our timezone into the entire page.
The visitor can select his timezone in the dropdown somewhere inside the page, so all the date and hours reload and update to the choosen timezone.
That would be possible ?
]]>hello,
i looked at the past support tickets, and couldn’t find what to change in the bellow code, to make the calculator also work for people who are not registered users, if you could tell what part of the code, i would be grateful
<div id=”timezonecalculator_calculator” style=”display: block;”><h2>Calculator</h2>
Choose your current timezone, then pick your date/time in the calendar/drop-down or enter it manually in the date field by using one of these formats: ISO (yyyy-mm-dd), US (mm/dd/yyyy) or any English textual datetime description (tomorrow 3 pm or 2009-04-23 16:30). Let’s start!<br><br>
<div id=”timezonecalculator_calculator_input” style=”margin-right: 20px; float: left; width: 400px;”>
<div class=”timezonecalculator_calculator_row”>
<div class=”timezonecalculator_calculator_input_header”>
<strong id=”timezonecalculator_calculator_input_header_timezone”>TimeZone
</div>
<div class=”timezonecalculator_calculator_input_content” role=”group” aria-labelledby=”timezonecalculator_calculator_input_header_timezone”>
<select class=”continent” name=”timezonecalculator_continent” id=”timezonecalculator_continent”><option value=”etc”>etc</option><option value=”Africa”>Africa</option><option value=”America”>America</option><option value=”Antarctica”>Antarctica</option><option value=”Arctic”>Arctic</option><option value=”Asia”>Asia</option><option value=”Atlantic”>Atlantic</option><option value=”Australia”>Australia</option><option value=”Europe”>Europe</option><option value=”Indian”>Indian</option><option value=”Pacific”>Pacific</option></select>
<select class=”timezone” name=”timezonecalculator_timezone” id=”timezonecalculator_timezone”><option value=”Africa/Abidjan”>Abidjan</option><option value=”Africa/Accra”>Accra</option><option value=”Africa/Addis_Ababa”>Addis Ababa</option><option value=”Africa/Algiers”>Algiers</option><option value=”Africa/Asmara”>Asmara</option><option value=”Africa/Bamako”>Bamako</option><option value=”Africa/Bangui”>Bangui</option><option value=”Africa/Banjul”>Banjul</option><option value=”Africa/Bissau”>Bissau</option><option value=”Africa/Blantyre”>Blantyre</option><option value=”Africa/Brazzaville”>Brazzaville</option><option value=”Africa/Bujumbura”>Bujumbura</option><option value=”Africa/Cairo”>Cairo</option><option value=”Africa/Casablanca”>Casablanca</option><option value=”Africa/Ceuta”>Ceuta</option><option value=”Africa/Conakry”>Conakry</option><option value=”Africa/Dakar”>Dakar</option><option value=”Africa/Dar_es_Salaam”>Dar es Salaam</option><option value=”Africa/Djibouti”>Djibouti</option><option value=”Africa/Douala”>Douala</option><option value=”Africa/El_Aaiun”>El Aaiun</option><option value=”Africa/Freetown”>Freetown</option><option value=”Africa/Gaborone”>Gaborone</option><option value=”Africa/Harare”>Harare</option><option value=”Africa/Johannesburg”>Johannesburg</option><option value=”Africa/Juba”>Juba</option><option value=”Africa/Kampala”>Kampala</option><option value=”Africa/Khartoum”>Khartoum</option><option value=”Africa/Kigali”>Kigali</option><option value=”Africa/Kinshasa”>Kinshasa</option><option value=”Africa/Lagos”>Lagos</option><option value=”Africa/Libreville”>Libreville</option><option value=”Africa/Lome”>Lome</option><option value=”Africa/Luanda”>Luanda</option><option value=”Africa/Lubumbashi”>Lubumbashi</option><option value=”Africa/Lusaka”>Lusaka</option><option value=”Africa/Malabo”>Malabo</option><option value=”Africa/Maputo”>Maputo</option><option value=”Africa/Maseru”>Maseru</option><option value=”Africa/Mbabane”>Mbabane</option><option value=”Africa/Mogadishu”>Mogadishu</option><option value=”Africa/Monrovia”>Monrovia</option><option value=”Africa/Nairobi”>Nairobi</option><option value=”Africa/Ndjamena”>Ndjamena</option><option value=”Africa/Niamey”>Niamey</option><option value=”Africa/Nouakchott”>Nouakchott</option><option value=”Africa/Ouagadougou”>Ouagadougou</option><option value=”Africa/Porto-Novo”>Porto-Novo</option><option value=”Africa/Sao_Tome”>Sao Tome</option><option value=”Africa/Tripoli”>Tripoli</option><option value=”Africa/Tunis”>Tunis</option><option value=”Africa/Windhoek”>Windhoek</option></select>
<script type=”text/javascript”>
/* <![CDATA[ */
/*
populate continents select
*/
jQuery(‘#timezonecalculator_continent’).replaceWith(‘<select class=”continent” name=”timezonecalculator_continent” id=”timezonecalculator_continent”>’+timezonecalculator_continents_array+'</select>’);
/*
load selected continent
*/
timezonecalculator_select_value_in_select(‘timezonecalculator_continent’, ‘Africa’);
/*
populate timezones-select
according to continents-select
*/
timezonecalculator_set_timezone_array(‘timezonecalculator_’);
/*
load selected timezone
*/
timezonecalculator_select_value_in_select(‘timezonecalculator_timezone’, ‘Africa/Abidjan’);
/*
all changes in the continent-select
trigger a reload of the related
timezones-select
*/
jQuery(‘#timezonecalculator_continent’).bind(‘change’, function(e){ timezonecalculator_set_timezone_array(‘timezonecalculator_’); });
/* ]]> */
</script>
</div>
</div>
<div class=”timezonecalculator_calculator_row”>
<div class=”timezonecalculator_calculator_input_header”>
<strong id=”timezonecalculator_calculator_input_header_date”>Date
</div>
<div class=”timezonecalculator_calculator_input_content” style=”display:table; width:100%” role=”group” aria-labelledby=”timezonecalculator_calculator_input_header_date”>
<div style=”display:table-row;”>
<input type=”text” name=”timezonecalculator_date” id=”timezonecalculator_date” placeholder=”2019-08-26, tomorrow 3pm, …” size=”25″ maxlength=”30″ value=””><span class=”fd-screen-reader”>Open Calendar</span>
<script type=”text/javascript”>
/* <![CDATA[ */
var opts = {
formElements:{“timezonecalculator_date”:”Y-ds-m-ds-d”},
highlightDays:[0,0,0,0,0,1,1],
fillGrid:true,
rangeLow:”19300101″,
rangeHigh:”20371231″,
noFadeEffect:true,
constrainSelection:false };
datePickerController.createDatePicker(opts);
timezonecalculator_calculator_set_default_date();
/* ]]> */
</script>
</div>
</div>
</div>
<div class=”timezonecalculator_calculator_row”>
<div class=”timezonecalculator_calculator_input_header”>
<strong id=”timezonecalculator_calculator_input_header_time”>Time
</div>
<div class=”timezonecalculator_calculator_input_content” role=”group” aria-labelledby=”timezonecalculator_calculator_input_header_time”>
<select class=”clock” name=”timezonecalculator_hour” id=”timezonecalculator_hour”><option value=”?”>-</option><option value=”00″>00 (12 am)</option><option value=”01″>01 (01 am)</option><option value=”02″>02 (02 am)</option><option value=”03″>03 (03 am)</option><option value=”04″>04 (04 am)</option><option value=”05″>05 (05 am)</option><option value=”06″>06 (06 am)</option><option value=”07″>07 (07 am)</option><option value=”08″>08 (08 am)</option><option value=”09″>09 (09 am)</option><option value=”10″>10 (10 am)</option><option value=”11″>11 (11 am)</option><option value=”12″>12 (12 pm)</option><option value=”13″>13 (01 pm)</option><option value=”14″>14 (02 pm)</option><option value=”15″>15 (03 pm)</option><option value=”16″>16 (04 pm)</option><option value=”17″>17 (05 pm)</option><option value=”18″>18 (06 pm)</option><option value=”19″>19 (07 pm)</option><option value=”20″>20 (08 pm)</option><option value=”21″>21 (09 pm)</option><option value=”22″>22 (10 pm)</option><option value=”23″>23 (11 pm)</option></select> : <select class=”clock” name=”timezonecalculator_minute” id=”timezonecalculator_minute”><option value=”?”>-</option><option value=”00″>00</option><option value=”05″>05</option><option value=”10″>10</option><option value=”15″>15</option><option value=”20″>20</option><option value=”25″>25</option><option value=”30″>30</option><option value=”35″>35</option><option value=”40″>40</option><option value=”45″>45</option><option value=”50″>50</option><option value=”55″>55</option></select> </div>
</div>
<div class=”timezonecalculator_calculator_input_content” style=”margin-bottom:10px; margin-top:30px”>
<input class=”button-primary” type=”button” name=”timezonecalculator_calculate_time” id=”timezonecalculator_calculate_time” value=”Calculate time”>
<input class=”button-primary” type=”button” name=”timezonecalculator_form_reset” id=”timezonecalculator_form_reset” value=”Reset”>
</div>
</div>
<div id=”timezonecalculator_calculator_results” style=”display: none; min-height: 320.5px; float: left; width: 400px;”>
<div id=”timezonecalculator_block_1″ class=”timezonecalculator-output”></div>
</div>
<div style=”clear:both”></div>
<script type=”text/javascript”>
/* <![CDATA[ */
jQuery(‘#fd-but-timezonecalculator_date span’).first().remove();
timezonecalculator_calculator_settings.block_id=’1′;
/*
register listeners for buttons
*/
jQuery(‘#timezonecalculator_calculate_time’).bind(‘click’, function(){ timezonecalculator_calculator_calculation(); });
jQuery(‘#timezonecalculator_form_reset’).bind(‘click’, function(){ timezonecalculator_calculator_reset_form(); });
/*
register listeners for text-input
*/
jQuery(‘#timezonecalculator_date’).keypress(function(e){
var keycode=(e.keyCode ? e.keyCode : e.which);
if (keycode==13)
timezonecalculator_calculator_calculation();
});
/*
media-query needs to be realized
with javascript
because we need to do some calculations
*/
jQuery(document).ready(function() {
timezonecalculator_resize_calculator_page();
});
jQuery(window).on(‘load resize orientationchange’, function() {
timezonecalculator_resize_calculator_page();
});
/*
needs to have a timeout
because there’s no
trigger available
*/
jQuery(‘#collapse-menu’).on(‘click’, function() {
window.setTimeout(function () {
timezonecalculator_resize_calculator_page();
}, 100);
});
/* ]]> */
</script>
</div>
]]>Is it possible to do both of the following:
1) display a time (a specific time I enter in the post editor) in the users local time zone and also
2) display the UTC timezone that displays eg UTC +10, and allow them to change the time zone if they want to.
If the above is true, can you please provide the shortcode (or an example shortcode) for this (my background isn’t in programming)
thanks!
]]>Hello!
Guys I’m asking for your help because even being an noob on WordPress, I’ve explored this plugin and I believe it can make it happen. I’m building a page with a list of online events and I would like to show the Events Dates on Visitor’s timezone.
Any hints?
Thank you very much!
Is it possible to use the same calculator (The calculator section in tools menu) in my page using shortcode?
Thanks in advance.
]]>Hi, Is there an option to change the query_time to read an American date format (MM-DD-YYYY) instead of the European format (DD/MM/YYYY)?
I’m using the plugin to generate regular lists of meeting times in half a dozen time zones using the query shown below:
[timezonecalculator_output query_time=”01-11-2017 8pm” query_timezone=”America/New_York”]
In the example above, since the plugin is reading the European date format, it outputs November when I intend for the date to be January.
Thanks!
]]>Hi,
When I have debug turned on, I get this error while using this plugin:
Notice: get_currentuserinfo is deprecated since version 4.5.0! Use wp_get_current_user() instead.
Is there a fix?
Thanks!
]]>Hello Bernhard Riedl,
I’m hoping to use your plugin TZC along with The Events Calendar https://theeventscalendar.com/ I have a client that hosts web events that are available to all around the world. The web site is configured for Colombia time. They have participants in Spain, Mexico, US and even Paris. It is a challenge to communicate event date and time to all of these folks. How might your plugin provide a solution? Does it work in conjunction with other calendar plugins? I’d be willing to change to a different calendar plugin to make this work for my client.
Thanks in advance!
j
Hi there,
Probably TimeZoneCalculator is just what I am looking for, but I can’t figure what shortcode I need. I live in Amsterdam and like to show the time difference with cities world wide?
Is there a possibility to show the current time in Amsterdam. Current time in New York for example and the time difference between Amsterdam and New York? If this is possible this would really make my week.
Thanks in advance for your help.
Regards,
Stephan
Time zone calculator has been working fine until I updated to version 4.4 of WordPress and when I activate this plugin I get a message saying that
Conditional query tags do not work before the query is run. THis message was added in 3.1 and give me an error on line 3787 of functions.php.
Any ideas ??
]]>Hello,
I can’t seem to find the short code. because i planning to put the time zone at the top header. no a widget is it possible?
Thanks
]]>Hi there,
This year TimeZoneCalculator celebrates its 10th anniversary, so once again it’s time to say thanks to all users, especially for your feedback in the last decade.
Safe travels,
Berny (coding) & Niki (texting)
Hi,
I want to insert a manually date & time in a post,
and want to change with clients(my website visitors) timezone.
Is it possible?
]]>Hi there,
I have taken the ‘li’ away as I want three time zones to be displayed horizontally across the top of my page – however it looks like this.
Uk: August 25, 12:50 pmChicago: August 25, 6:50 amUTC: August 25, 11:50 am
How do I add spaces between the zones?
Many thanks
Nick
https://www.ads-software.com/plugins/timezonecalculator/
Bernhard,
Thank you for making such a well-made plugin. It is cleanly put together and a pleasure to use. This is one that solves so many little problems. There isn’t another one like it of such good and quality.
I’ve been having a small conflict (not a serious one) with the BuddyBoss Media plugin (https://www.buddyboss.com/product/buddyboss-media/). I’m reporting this both to you and the developers of that plugin to see if I can’t get some help in solving it. I don’t think it is a bug with your plugin, but a conflict between the two.
The media plugin has a lightbox system that allows users to view photos enlarged. However, if a user has a picture enlarged when your plugin fires it’s ajax to refresh,the screen gets wiped blank.
I’m wondering if there is a way to pause the ajax call in timezonecalculator based on certain conditions. I haven’t seen reports of other lightbox plugins being effected by it so I’m unsure what to do.
My support request for the BuddyBoss media plugin can be found here: https://www.buddyboss.com/support-forums/topic/ajax-conflict-with-another-plugin/
]]>Hello TimeZoneCalculator people!
I don’t really know what I’m doing so please can you help me. I followed the instructions in a support post from a while ago (“Different Cities for different posts”) but whatever I do it doesn’t work. I usually end up with just the colon separator!
The default label for Europe/London is always BST (which is correct of course) but I just what it to say “UK”.
Can I do that?
Aside from that the plug-in is great!
]]>Perhaps I’m misunderstanding the intent of your calculator. My need is simple, just show the time for an event in the website visitor’s local time. The visitor is likely not a wordpress user. I don’t need a list of timezones, just the one that applies to the visitor where they are. Here’s the short code that I’m using but it always shows the time in UTC.
[timezonecalculator_output query_time=”Sun, 13 Sep 2015 14:30:00″ query_timezone=”America/New_York”]
Result: 2015-09-13 06:30 pm UTC
Because I’m in the New York timezone, expected Result: 2015-09-13 02:30 pm America/New York
I’ve tried many different settings on the admin options to no avail.
Thank you for any help.
Kristin
Hi
I am no expert but my site was hacked and looks like Timezone calculator might be the injection point. Whenever I call [timezonecalculator_output] it displays the time but also the ad
Displays as follow
UTC: 2015-06-21 17:16
Find hotels in these timezones using Hipmunk hotels.
I have updated my wordpress to 4.2.2 and all the plugins installed active or inactive. If I deactivate the plugin the hotel ad disappears. I have also tried deleting your plugin and reinstalling but this problem still persist.
Please suggest what could be the problem.
]]>Hi,
I’m using your plugin in the administrative page and on the home page of my site https://www.gallinagiacinto.it through the widget.
Some questions:
1) How can I display only time and date in the widget, since the location name is the title of the widget? Leaving ‘Abbreviation Standard’ and ‘Abbreviation Daylightsaving’ field blank, I can’t ride of colon.
2) I’d like to change the style of date and time inside the widget, but unfortunately it has not its own class or ID. Is it possible to create one (without forcing it with an external plugin), so I can use CSS attribute and define my own style? It would be perfect if I could left-aligh the ‘Abbreviation Standard and Daylightsaving’, center or right-align date and time, choose the font-family, font-size, font-weight, background and so on.
Thank you for your nice plugin:-)
Pier
]]>I want to show times at different cites, just the time
20:00 or 08:00 biased on the city, and it needs to be using the shortcode, would really appreciate your help.
]]>I love the calculator at the link listed below but only admins can use it. How do I enable something very similar in a post so that all users can enjoy the calculator?
https://example.com/wordpress/wp-admin/tools.php?page=timezonecalculator_calculator
]]>I just installed the latest version of TimeZoneCalculator and it seems that the minutes is 26 minutes ahead?
It’s currently 11:37PM in Japan and the plugin says 00:03 JST.
]]>Hey there,
My admin bar says ‘no timezone-id given’, any thoughts on this?
Thanks in advance. (- :
]]>Hi,
I m trying to call the time for special cities in several posts by using that code “<?php $timezonecalculator->output($params);?>” inside my sidebar “php-code-widget”. It is working fine, but I don’t want to show the reader all the 10 cities I selected for the different timezones in australia.
e.g. for perth I want to show only the timezone-data for perth
for sydney -> only timezone data for sydney and so on…
What do I have to change in order to just call a specific timezone and not for all cities I have put in the drag and drop layout section ?
Is there a way to adjust this code <?php $timezonecalculator->output($params);?> in order to get only the timezone for e.g. sydney
maybe s.th. like <?php $timezonecalculator->output($params(query … sydney …);?> ?
many thanks
wombii
https://www.ads-software.com/extend/plugins/timezonecalculator/
]]>Never mind, resolved. Nice plugin. Cheers
https://www.ads-software.com/extend/plugins/timezonecalculator/
]]>Hi
how can I add the name of the country by the left side of the shown time.
now it is shown as :
CET: 2012-12-27 19:09
KST: 2012-12-28 03:09
I would like it to be like this:
Algiers: 2012-12-27 19:09
Seoul: 2012-12-28 03:09
Thank you
https://www.ads-software.com/extend/plugins/timezonecalculator/
]]>Prototype is on its way out. Switch to using jQuery for the AJAX refresh.
All my other plugins are jQuery-based and loading the Prototype .js file slows down my page.
https://www.ads-software.com/extend/plugins/timezonecalculator/
]]>Yep, it’s already five years since I wrote TimeZoneCalculator, which was my first WordPress plugin.
I hope you still enjoy its features and thanks for all the comments which you’ve send me over the years to help improving TimeZoneCalculator.
Berny
https://www.ads-software.com/extend/plugins/timezonecalculator/
]]>