TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Show HN: Self-updating, simplified time zone list

6 pointsby vvoyeralmost 5 years ago

1 comment

vvoyeralmost 5 years ago
Hey HN! I needed to build a current time zones select box much like the one you can find on Google Calendar. Turns out Google Calendar uses a simplified time zone list. But such list is not really standard.<p>First, the actual text being displayed is not a list time zones but rather a list of UTC offsets and their names. For example the IANA time zone list has &quot;America&#x2F;Los_Angeles&quot;. But google calendar displays &quot;Pacific Time - Los Angeles&quot; which is good because most of the time people will email you saying &quot;Let&#x27;s have this call at 5PM PT&quot;<p>Grouping time zones is tricky, you can group per offset in the same country safely, which is what I&#x27;ve done in this project.<p>The project is self updating given data from geonames using GitHub actions. There&#x27;s an npm package you can use too.<p>Enjoy!