Skip to content

Comment on Extend Twitter Bootstrap with these Bootstrap Form Helpers

Comments

Awesome. I took the effort and found all timezones across the world and put them into a select for http://commando.io. Would be cool to have a Bootstrap plugin for this. Here is the select HTML markup.

https://gist.github.com/3919205

I appreciate the effort but your list is just plain wrong.

1. It's not "all timezones across the world" but rather Windows time zones from a particular version of Windows. Most people use the much more accurate Olson database that actually gives you correct time offsets, daylight savings rules, etc.

2. Your option values, i.e. offsets, are either meaningless, or if someone actually uses them, erroneous. For example, current UTC is 17:40 but current Central is 12:40 not 11:40. Again, use the Olson database if you want better time conversions - Windows offset numbers are just a part of the timezone name, not an actual offset.

3. Timezone names differ depending on the language settings on your PC, and your list is only a small EN subset of the time zones, which, given the international nature of the list, is not very useful. If your users are in a non-American time zone, it is very likely that their time zone name is not on your list.

4. Timezone names differ from version to version, and are not backward compatible. Your list is only correct for whatever version you collected it on so it should be identified as such. Even better, if someone actually needs Windows timezones - like I said above, most likely you need the Olson timezones - they should take them from the source, by running the tzutil utility, or from microsoft.com.

Your list should be identified as what it is, a list of Windows time zones, (?) OS version. Even then, it's dangerous that whoever stumbles upon it will use the offsets for time conversions.

Actually, I got the timezones from WikiPedia (http://en.wikipedia.org/wiki/Time_zone) not Windows. I manually went through the WikiPedia list and built up the list. Then I have a checkbox; is daylight savings [ ].

The name list is just one or two major cities. The assumption is users know their offset.

I appreciate your comments thought.

I just did a search on that page on a couple specific time zones included in your list, and couldn't hit any results for: Caracas or Brussels. It doesn't seem you linked the right page?

As far as separate checkbox for daylight savings: (1) there are more rules than just daylight savings, and moreover some timezones have daylight savings other than 1 hour (this is rare but still); (2) most languages have libraries that will calculate the timezone for you, and it's both easier and more accurate, both for the user and the developer, to use these libraries to do all the heavy lifting for you.

Caracas is `-4:30 hours` which is the same as 'Venezuela` in WikiPedia. Just wanted to stick with cities.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.