World Time for WordPress

Don’t forget to upgrade!  In WordPress, just go to Plugins > Installed > and click on ‘upgrade automatically’ below Utech World Time

Useful links:

Please use the comment box below or send me an email for support or feedback.

Utech World Time for WordPress creates real time world clocks on your WordPress posts or pages using simple shortcode. The customizable clocks show the name and current time of the location of your choice. Currently there are well over 600 locations available.

  • The clocks display the current time, even if the user’s computer clock is wrong.
  • They automatically adjusts for Daylight Saving Time.
  • All the major time zones are supported.
  • Customizable and easy to include with shortcode.

How to use

Download the plugin from here, unzip it and save it in the wordpress plugin folder. Then activate it and enjoy.

Create a simple GMT/UTC clock by typing [worldtime] anywhere in your text. This will give you:


GMT/UTC

Use the ‘places’ parameter to specify the clock’s time zone like so
[worldtime places="Paris"]


Paris

List several places sperated by a comma e.g.
[worldtime places="Paris, New York, Brisbane, Perth"]. This will create multiple world clocks below each other. Please note that there is currently a limit of 6 clocks you can create with one shortcode statement:


Brisbane

New York

Paris

Perth

Complete list of parameters of this version

places
Takes a list of comma separated towns

base_color
Background color e.g. base_color=fff

base_font_color
Location font color e.g. base_color=000

base_font_size
Location font size

clock_color
Time background color e.g. base_color=bbb

clock_font_color
Clock font color e.g. base_color=666

clock_font_size

Clock font size

gap
Space between individual clocks in a stack

width
Overrides width in pixels

sec
Will hide seconds if set to 0, e.g. sec=0

What you need to know

This plugin utilizes services provided by TimeAndDate.com and is made possible with their friendly permission.

TimeAndDate’s condition of use stipulates a maximum of 6 clocks per page. In future this limit will be removed however for now it is important to stick to it as each clock creates a connection to their server (and ours). TimeAndDate also requires a separate link to their site if more than two clocks are used.

List of Locations used in World Time for WordPress

For a complete list of all available locations (places parameter) go to Locations


Comments

15 Comments

  • [...] World Time for WordPress Plugin erlaubt die Anzeige der aktuellen Zeit aus allen Zeitzonen der Welt. Die Ausgabe kann gestyled [...]

  • [...] World Time for WordPress Plugin von Utech Computer Solutions erlaubt die Anzeige der aktuellen Zeit aus allen Zeitzonen der Welt. [...]

  • Fábio ZC says:

    Hi!! I want to put some clocks (about 4 or 5) directly in my theme php. Any suggestions about how i do that?

    Thanks!

    • Meini says:

      Hi Fábio ZC,

      That shoudn’t be a problem. As far as I understand from what you are doing, you can’t use the shortcode, but want to create the clocks with php code. What you need to do is create an iframe with:

      src="http://www.mandronline.com/wp/wt/wt.php"

      That should give you the standard GMT clock. Next you want to give it some juice (parameters) e.g.

      src="http://www.mandronline.com/wp/wt/wt.php/?Loc=Paris"

      these paramters have different names to the ones I have used for the shortcode, but you can easily find out what they are if you have a look at my code in utech_world_time.php, from line 62 onwards.

      Obviously if you need php to create the iframe you use the echo command.

      Pleae let me know if this answers your question or if you need more info.
      Cheers
      Meini

      • Chrissy says:

        Hello,

        this is a great plugin and it worked at my test server good. But now on my live server it isn’t working any more in my sidebar, only in the post with the shortcode.
        In my sidebar I wrote a iframe with the link you said. But I get know the message “Please upgrade..” and when I’m trying to link it to the plugin-php file I get an error. (you can still see it online) So, can you help me with it, please?

        Thanks.

        • Meini says:

          Hi Chrissy,

          I am sorry but above information is outdated. It is not valid any more for version 1.0 and won’t even work with the previous versions any more because it relied on information from our server. The new version works independently. So you really need to upgrade the plugin to the newest version first and then things should work.

          A common trap with shortcodes also is that people copy and paste sample code not realizing that they also copy the html code that makes it remain visible as code. So you really need to switch to the HTML tab and make sure the shortcode is there, nice and clean without additional tags. If you do copy and paste, paste it in HTML, never on the Visual tab.

          With regards to putting it onto the sidebar I have just created a solution here on this page’s sidebar using the Sidebar Shortcodes plugin by Dan Coulter. I simply used the Text Widget for it. Works well although I haven’t tested it on WP3.0 yet. I am still running on 2.9 (shame on me).

          See how you go and let me know if you get stuck.

  • Sahara says:

    Love it. But I can’t seem to get some of the options to work.

    Can you give a syntax example using all the options?

    Thanks again for your work.

    • Meini says:

      Thanks Sahara, If you tell me what you are trying to achieve, I am happy to give you a hand. I will also see that I can create an example page over the next few days.

    • Sahara says:

      It would be sweet to create a world time clock showing:

      Paris, San Jose Calif., London England, Moscow, the Altai region of Siberia (no idea what city there, but I have good friends there), Rio (South America), Chile, and so on.

      I must be doing something wrong with basic syntax, because I cannot get any of the options to work.

      Background color: #EBDFD6

      Centered beneath your beautiful spinning globe.

      Just a note on proper syntax, using different options, is probably enough for me to proceed. Is there a list of locations I can use, so I can specify exact locations?

      No need for you to spend a lot of time on this — I don’t want to be a bother.

  • Sahara says:

    Excellent! I see now what I was doing wrong. Your example makes it very clear.

    By the way, I just realized… the moon does not spin — probably not a good next project.

    Your spinning globe is now on my site and it helps me create a message that is very appropriate for my readers — “Love the Earth, It’s now or never…”

    Thanks again — much appreciated!

    • Meini says:

      Good on you Sahara!

      Are you sure that the moon does not spin? Being an earthling I agree totally as we always see the one side of the moon only. However, by going around the earth every 28 days or so, it is doing one full turn around its own axis. So a silent observer from a fixed point in our solar system can see the moon spinning slowly while it meanders its way around the earth and the sun throughout the year.

      So the moon spins *and* it doesn’t. It is like that with most things in life, there is no single truth! Oh, how I love practical philosophy! :)

  • Emeric says:

    Great plugin!
    Is there a way to have the 24 hours time format (ie 18:00 instead of 6:00 PM) ?

    • Meini says:

      Hi Emeric,
      24 hour format is not supported at the moment, but I will make sure I implement that in the next version.
      Thanks for suggesting it.
      Cheers!

Leave a Reply