Loading, please wait.

TMZNS ← timezones for humans

When it's in ,

it's in .

More info

TMZNS iconTMZNS is a free, open-source timezone converter. Install as Chrome App

Finding out the actual time difference between two places in the world is hard. There are online converters that can do that for you but their user experience sucks. I always wondered why someone won’t fix this — until I ultimately decided to try myself.

And boy, was I surprised how hard this problem is! If you think this is a simple algorithm, think again. Timezones and daylight saving times around the world are a mess. Fortunately, the great people at tzdata are publishing an open-source timezone database — so I was able to focus on user experience.

This is also an exercise of using Google’s Closure Library & Compiler, which is why the code looks structured and everything “just works” (although, as always, YMMV).

Shortcoming of this version:

  • The time difference only applies for today. There will be a date picker in the future.
  • Only major cities are included. For example, you can find what is the time in Los Angeles, but not in Seattle.
  • Valid timezone inputs should include countries (“Czech Republic”) when these countries only have one timezone.
  • The app should understand inputs like “west usa”.
  • When you type a number (like “6”) into the time input field, the converter assumes you mean 6am. This should be explicitly shown.
  • The timezone field should show the actual timezone name (“GMT”, “PDT”) when the user inputs a city name.
  • The app should learn from user input and show times in the same format in which they are put in.
  • When user writes “now” as the time, it should autoupdate and correspond to now.
  • Optimizations of AJAX calls are still possible.
  • The code could be cleaner. There is at least one quick & dirty hack (a method override).
  • Please report any other shortcomings and problems.

Interested in the source code? It’s hosted here.

Happy converting!

— Filip Hracek