Anders Almås
Nov 30, 2009
  10302
(1 votes)

Time Zone Gadget

If you work as an editor or a developer in a global company, I bet you have found yourself in a situation where you have wondered if you can call your colleague or client abroad (and expect an answer). Will my colleague or client be at work yet? What is the time there? How do you even know if their day has started?

Well, just relax, the answers to all your prayers are here; the TimeZone gadget :) With this gadget you have full control over the local time at all locations that you deal with during your day!

How the Time Zone gadget works

You add your location by typing it in the textbox and click ”Find location!”.

A search for ”Copenhagen” returns the following results:

clip_image001

Select your location from the list by clicking ”add location”.

The location will then be added to your gadget showing the local time, timezone and GMT offset for each location, as shown below:

clip_image002[4]

What it is built on

I am using the GeoNames web services to find geographical locations and their corresponding time zone offsets. The clock is built using Silverlight and is based on this Silverlight project.

Download and installation

There are two projects; ”TimeZoneGadget” which is the Gadget MVC-project and a Silverlight project is called ”TimeZoneClock”, which is the clock.

The gadget is relying upon the Silverlight .xap-file being localized in ”ClientBin/TimeZoneClock.xap” under the root of your site.

Get the source files here:   

   
Nov 30, 2009

Comments

Please login to comment.
Latest blogs
Creating an Optimizely CMS Addon - Adding an Editor Interface Gadget

In   Part One   of this series, I covered getting started with creating your own AddOn for Optimizely CMS 12. This covered what I consider to be an...

Mark Stott | Aug 30, 2024

Configure your own Search & Navigation timeouts

The main blog Configure your own Search & Navigation timeouts was posted for years but you need copy the code to your application. We now bring tho...

Manh Nguyen | Aug 30, 2024

Joining the Optimizely MVP Program

Andy Blyth has been honoured as an Optimizely MVP, recognising his contributions to the Optimizely community. Learn how this achievement will enhan...

Andy Blyth | Aug 29, 2024 | Syndicated blog

Welcome 2024 Summer OMVPs

Hello, Optimizely community! We are thrilled to announce and welcome the newest members to the Optimizely Most Valuable Professionals (OMVP) progra...

Patrick Lam | Aug 29, 2024