Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 1041453
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T15:21:19+00:00 2026-05-16T15:21:19+00:00

The task: Time zone chooser widget that allows site visitors to choose their time

  • 0

The task:

Time zone chooser widget that allows site visitors to choose their time zone should be generated and populated with reasonable data. It should offer choices like this:

GMT-11 (HH:MM actual time in that zone)
GMT-10 (...)
GMT-1 (...)
... now for the tricky part:
GMT (...)
GMT+1 (...)
... and then all the way until +12.

When user chooses different time zone, server should be able to figure out what time zone to set. This second part isn’t much of a problem, once list is populated with correct data.

The problem:

Tricky part is getting actual timezones which are currently in use world-wide. I know how to get entire list of timezones, and how to get their offsets and current DST settings. But, each time zone has two variants: regular time and DST time.

In above list I have marked certain “tricky” part. This is where time zones like Europe/London are. During regular time, Europe/London = GMT, but during DST, Europe/London = GMT+1… Can you see a problem?

What troubles me also is that not all time zones change from DST to regular time and vice-versa, so I can’t just populate list with generic data like -11 = GMT-11, -10 = GMT-10, … and then just apply some logic to locate time zone with appropriate time difference and then set that time zone as a default from that point on.

I’m interested to hear how other sites, that utilize this time zone switching feature, come up with a list of time zones and a logic to choose right time zone, depending on user’s choices? Something else you’d like to add or ask?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-16T15:21:19+00:00Added an answer on May 16, 2026 at 3:21 pm

    Have a look at what Google Calendar does. It displays the standard time offset as well as the city name, e.g.

    (GMT+01:00) Tunis
    

    That seems a pretty reasonable way of representing them, too me. On the other hand, I’m aware that some UIs list the current offset from UTC along with the city. Either way you’ll confuse people, to be honest.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i using MySQL Query for my task. And I interested using Date and time
Our code sucks. Actually, let me clarify that. Our old code sucks. It's difficult
I have a task tracking application, which is very basic. It currently has a
I have a standard DotNetNuke installation that I am developing some modules for. Every
I have a list that gets refreshed every 2 seconds via the Handler postDelayed()
What is the quickest way to internationalise a php webapp? We need to be
I'm trying to use the AbortableTask feature of Celery but the documentation example doesn't
I'm building my first Rails project - its a ToDo app, which are supposed
A project I have been working on for the past year writes out log

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.